home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Tape Archive
(archive/tar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Tape Archive (archive/tar)
| magic
| Supported |
100%
| file
| POSIX tar archive (GNU)
| default
| |
99%
| file
| POSIX tar archive (GNU), directory bsd.ftpd/, mode 40700 , uid 764 , gid 144 , size 0 , seconds 6024236170, user downsj, group users
| default
| |
98%
| file
| data
| default
| |
62%
| TrID
| TAR - Tape ARchive (GNU)
| default
| |
37%
| TrID
| TAR - Tape ARchive (directory)
| default
| |
100%
| siegfried
| x-fmt/265 Tape Archive Format
| default
| |
100%
| lsar
| Tar
| default
| |
100%
| gt2
| TAR Archiv gefunden (Auflistung ist deaktiviert)
| default
| |
100%
| disktype
| GNU tar archive
| default
| |
100%
| detectItEasy
| Archive: tar
| default
| |
100%
| binwalkID
| POSIX tar archive (GNU), owner user name: "/"
| default
| |
100%
| xdgMime
| application/x-tar
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 62 73 64 2e 66 74 70 64 | 2f 00 00 00 00 00 00 00 |bsd.ftpd|/.......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 34 30 37 | 30 30 20 00 20 20 20 37 |.... 407|00 . 7|
|00000070| 36 34 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |64 . 1|44 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 36 30 32 34 32 33 36 | 0 | 6024236|
|00000090| 31 37 30 20 20 31 31 33 | 36 33 00 20 35 00 00 00 |170 113|63. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 20 20 | 00 64 6f 77 6e 73 6a 00 |.ustar |.downsj.|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 62 73 64 2e 66 74 70 64 | 2f 65 72 72 2e 63 00 00 |bsd.ftpd|/err.c..|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 31 30 30 36 | 30 30 20 00 20 20 20 37 |....1006|00 . 7|
|00000270| 36 34 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |64 . 1|44 . |
|00000280| 20 20 31 30 36 35 32 20 | 20 36 30 32 34 32 32 34 | 10652 | 6024224|
|00000290| 37 32 34 20 20 31 32 34 | 34 34 00 20 30 00 00 00 |724 124|44. 0...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 75 73 74 61 72 20 20 | 00 64 6f 77 6e 73 6a 00 |.ustar |.downsj.|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 2f 2a 2d 0a 20 2a 20 43 | 6f 70 79 72 69 67 68 74 |/*-. * C|opyright|
|00000410| 20 28 63 29 20 31 39 39 | 33 0a 20 2a 09 54 68 65 | (c) 199|3. *.The|
|00000420| 20 52 65 67 65 6e 74 73 | 20 6f 66 20 74 68 65 20 | Regents| of the |
|00000430| 55 6e 69 76 65 72 73 69 | 74 79 20 6f 66 20 43 61 |Universi|ty of Ca|
|00000440| 6c 69 66 6f 72 6e 69 61 | 2e 20 20 41 6c 6c 20 72 |lifornia|. All r|
|00000450| 69 67 68 74 73 20 72 65 | 73 65 72 76 65 64 2e 0a |ights re|served..|
|00000460| 20 2a 0a 20 2a 20 52 65 | 64 69 73 74 72 69 62 75 | *. * Re|distribu|
|00000470| 74 69 6f 6e 20 61 6e 64 | 20 75 73 65 20 69 6e 20 |tion and| use in |
|00000480| 73 6f 75 72 63 65 20 61 | 6e 64 20 62 69 6e 61 72 |source a|nd binar|
|00000490| 79 20 66 6f 72 6d 73 2c | 20 77 69 74 68 20 6f 72 |y forms,| with or|
|000004a0| 20 77 69 74 68 6f 75 74 | 0a 20 2a 20 6d 6f 64 69 | without|. * modi|
|000004b0| 66 69 63 61 74 69 6f 6e | 2c 20 61 72 65 20 70 65 |fication|, are pe|
|000004c0| 72 6d 69 74 74 65 64 20 | 70 72 6f 76 69 64 65 64 |rmitted |provided|
|000004d0| 20 74 68 61 74 20 74 68 | 65 20 66 6f 6c 6c 6f 77 | that th|e follow|
|000004e0| 69 6e 67 20 63 6f 6e 64 | 69 74 69 6f 6e 73 0a 20 |ing cond|itions. |
|000004f0| 2a 20 61 72 65 20 6d 65 | 74 3a 0a 20 2a 20 31 2e |* are me|t:. * 1.|
|00000500| 20 52 65 64 69 73 74 72 | 69 62 75 74 69 6f 6e 73 | Redistr|ibutions|
|00000510| 20 6f 66 20 73 6f 75 72 | 63 65 20 63 6f 64 65 20 | of sour|ce code |
|00000520| 6d 75 73 74 20 72 65 74 | 61 69 6e 20 74 68 65 20 |must ret|ain the |
|00000530| 61 62 6f 76 65 20 63 6f | 70 79 72 69 67 68 74 0a |above co|pyright.|
|00000540| 20 2a 20 20 20 20 6e 6f | 74 69 63 65 2c 20 74 68 | * no|tice, th|
|00000550| 69 73 20 6c 69 73 74 20 | 6f 66 20 63 6f 6e 64 69 |is list |of condi|
|00000560| 74 69 6f 6e 73 20 61 6e | 64 20 74 68 65 20 66 6f |tions an|d the fo|
|00000570| 6c 6c 6f 77 69 6e 67 20 | 64 69 73 63 6c 61 69 6d |llowing |disclaim|
|00000580| 65 72 2e 0a 20 2a 20 32 | 2e 20 52 65 64 69 73 74 |er.. * 2|. Redist|
|00000590| 72 69 62 75 74 69 6f 6e | 73 20 69 6e 20 62 69 6e |ribution|s in bin|
|000005a0| 61 72 79 20 66 6f 72 6d | 20 6d 75 73 74 20 72 65 |ary form| must re|
|000005b0| 70 72 6f 64 75 63 65 20 | 74 68 65 20 61 62 6f 76 |produce |the abov|
|000005c0| 65 20 63 6f 70 79 72 69 | 67 68 74 0a 20 2a 20 20 |e copyri|ght. * |
|000005d0| 20 20 6e 6f 74 69 63 65 | 2c 20 74 68 69 73 20 6c | notice|, this l|
|000005e0| 69 73 74 20 6f 66 20 63 | 6f 6e 64 69 74 69 6f 6e |ist of c|ondition|
|000005f0| 73 20 61 6e 64 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |s and th|e follow|
|00000600| 69 6e 67 20 64 69 73 63 | 6c 61 69 6d 65 72 20 69 |ing disc|laimer i|
|00000610| 6e 20 74 68 65 0a 20 2a | 20 20 20 20 64 6f 63 75 |n the. *| docu|
|00000620| 6d 65 6e 74 61 74 69 6f | 6e 20 61 6e 64 2f 6f 72 |mentatio|n and/or|
|00000630| 20 6f 74 68 65 72 20 6d | 61 74 65 72 69 61 6c 73 | other m|aterials|
|00000640| 20 70 72 6f 76 69 64 65 | 64 20 77 69 74 68 20 74 | provide|d with t|
|00000650| 68 65 20 64 69 73 74 72 | 69 62 75 74 69 6f 6e 2e |he distr|ibution.|
|00000660| 0a 20 2a 20 33 2e 20 41 | 6c 6c 20 61 64 76 65 72 |. * 3. A|ll adver|
|00000670| 74 69 73 69 6e 67 20 6d | 61 74 65 72 69 61 6c 73 |tising m|aterials|
|00000680| 20 6d 65 6e 74 69 6f 6e | 69 6e 67 20 66 65 61 74 | mention|ing feat|
|00000690| 75 72 65 73 20 6f 72 20 | 75 73 65 20 6f 66 20 74 |ures or |use of t|
|000006a0| 68 69 73 20 73 6f 66 74 | 77 61 72 65 0a 20 2a 20 |his soft|ware. * |
|000006b0| 20 20 20 6d 75 73 74 20 | 64 69 73 70 6c 61 79 20 | must |display |
|000006c0| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 61 63 |the foll|owing ac|
|000006d0| 6b 6e 6f 77 6c 65 64 67 | 65 6d 65 6e 74 3a 0a 20 |knowledg|ement:. |
|000006e0| 2a 09 54 68 69 73 20 70 | 72 6f 64 75 63 74 20 69 |*.This p|roduct i|
|000006f0| 6e 63 6c 75 64 65 73 20 | 73 6f 66 74 77 61 72 65 |ncludes |software|
|00000700| 20 64 65 76 65 6c 6f 70 | 65 64 20 62 79 20 74 68 | develop|ed by th|
|00000710| 65 20 55 6e 69 76 65 72 | 73 69 74 79 20 6f 66 0a |e Univer|sity of.|
|00000720| 20 2a 09 43 61 6c 69 66 | 6f 72 6e 69 61 2c 20 42 | *.Calif|ornia, B|
|00000730| 65 72 6b 65 6c 65 79 20 | 61 6e 64 20 69 74 73 20 |erkeley |and its |
|00000740| 63 6f 6e 74 72 69 62 75 | 74 6f 72 73 2e 0a 20 2a |contribu|tors.. *|
|00000750| 20 34 2e 20 4e 65 69 74 | 68 65 72 20 74 68 65 20 | 4. Neit|her the |
|00000760| 6e 61 6d 65 20 6f 66 20 | 74 68 65 20 55 6e 69 76 |name of |the Univ|
|00000770| 65 72 73 69 74 79 20 6e | 6f 72 20 74 68 65 20 6e |ersity n|or the n|
|00000780| 61 6d 65 73 20 6f 66 20 | 69 74 73 20 63 6f 6e 74 |ames of |its cont|
|00000790| 72 69 62 75 74 6f 72 73 | 0a 20 2a 20 20 20 20 6d |ributors|. * m|
|000007a0| 61 79 20 62 65 20 75 73 | 65 64 20 74 6f 20 65 6e |ay be us|ed to en|
|000007b0| 64 6f 72 73 65 20 6f 72 | 20 70 72 6f 6d 6f 74 65 |dorse or| promote|
|000007c0| 20 70 72 6f 64 75 63 74 | 73 20 64 65 72 69 76 65 | product|s derive|
|000007d0| 64 20 66 72 6f 6d 20 74 | 68 69 73 20 73 6f 66 74 |d from t|his soft|
|000007e0| 77 61 72 65 0a 20 2a 20 | 20 20 20 77 69 74 68 6f |ware. * | witho|
|000007f0| 75 74 20 73 70 65 63 69 | 66 69 63 20 70 72 69 6f |ut speci|fic prio|
|00000800| 72 20 77 72 69 74 74 65 | 6e 20 70 65 72 6d 69 73 |r writte|n permis|
|00000810| 73 69 6f 6e 2e 0a 20 2a | 0a 20 2a 20 54 48 49 53 |sion.. *|. * THIS|
|00000820| 20 53 4f 46 54 57 41 52 | 45 20 49 53 20 50 52 4f | SOFTWAR|E IS PRO|
|00000830| 56 49 44 45 44 20 42 59 | 20 54 48 45 20 52 45 47 |VIDED BY| THE REG|
|00000840| 45 4e 54 53 20 41 4e 44 | 20 43 4f 4e 54 52 49 42 |ENTS AND| CONTRIB|
|00000850| 55 54 4f 52 53 20 60 60 | 41 53 20 49 53 27 27 20 |UTORS ``|AS IS'' |
|00000860| 41 4e 44 0a 20 2a 20 41 | 4e 59 20 45 58 50 52 45 |AND. * A|NY EXPRE|
|00000870| 53 53 20 4f 52 20 49 4d | 50 4c 49 45 44 20 57 41 |SS OR IM|PLIED WA|
|00000880| 52 52 41 4e 54 49 45 53 | 2c 20 49 4e 43 4c 55 44 |RRANTIES|, INCLUD|
|00000890| 49 4e 47 2c 20 42 55 54 | 20 4e 4f 54 20 4c 49 4d |ING, BUT| NOT LIM|
|000008a0| 49 54 45 44 20 54 4f 2c | 20 54 48 45 0a 20 2a 20 |ITED TO,| THE. * |
|000008b0| 49 4d 50 4c 49 45 44 20 | 57 41 52 52 41 4e 54 49 |IMPLIED |WARRANTI|
|000008c0| 45 53 20 4f 46 20 4d 45 | 52 43 48 41 4e 54 41 42 |ES OF ME|RCHANTAB|
|000008d0| 49 4c 49 54 59 20 41 4e | 44 20 46 49 54 4e 45 53 |ILITY AN|D FITNES|
|000008e0| 53 20 46 4f 52 20 41 20 | 50 41 52 54 49 43 55 4c |S FOR A |PARTICUL|
|000008f0| 41 52 20 50 55 52 50 4f | 53 45 0a 20 2a 20 41 52 |AR PURPO|SE. * AR|
|00000900| 45 20 44 49 53 43 4c 41 | 49 4d 45 44 2e 20 20 49 |E DISCLA|IMED. I|
|00000910| 4e 20 4e 4f 20 45 56 45 | 4e 54 20 53 48 41 4c 4c |N NO EVE|NT SHALL|
|00000920| 20 54 48 45 20 52 45 47 | 45 4e 54 53 20 4f 52 20 | THE REG|ENTS OR |
|00000930| 43 4f 4e 54 52 49 42 55 | 54 4f 52 53 20 42 45 20 |CONTRIBU|TORS BE |
|00000940| 4c 49 41 42 4c 45 0a 20 | 2a 20 46 4f 52 20 41 4e |LIABLE. |* FOR AN|
|00000950| 59 20 44 49 52 45 43 54 | 2c 20 49 4e 44 49 52 45 |Y DIRECT|, INDIRE|
|00000960| 43 54 2c 20 49 4e 43 49 | 44 45 4e 54 41 4c 2c 20 |CT, INCI|DENTAL, |
|00000970| 53 50 45 43 49 41 4c 2c | 20 45 58 45 4d 50 4c 41 |SPECIAL,| EXEMPLA|
|00000980| 52 59 2c 20 4f 52 20 43 | 4f 4e 53 45 51 55 45 4e |RY, OR C|ONSEQUEN|
|00000990| 54 49 41 4c 0a 20 2a 20 | 44 41 4d 41 47 45 53 20 |TIAL. * |DAMAGES |
|000009a0| 28 49 4e 43 4c 55 44 49 | 4e 47 2c 20 42 55 54 20 |(INCLUDI|NG, BUT |
|000009b0| 4e 4f 54 20 4c 49 4d 49 | 54 45 44 20 54 4f 2c 20 |NOT LIMI|TED TO, |
|000009c0| 50 52 4f 43 55 52 45 4d | 45 4e 54 20 4f 46 20 53 |PROCUREM|ENT OF S|
|000009d0| 55 42 53 54 49 54 55 54 | 45 20 47 4f 4f 44 53 0a |UBSTITUT|E GOODS.|
|000009e0| 20 2a 20 4f 52 20 53 45 | 52 56 49 43 45 53 3b 20 | * OR SE|RVICES; |
|000009f0| 4c 4f 53 53 20 4f 46 20 | 55 53 45 2c 20 44 41 54 |LOSS OF |USE, DAT|
|00000a00| 41 2c 20 4f 52 20 50 52 | 4f 46 49 54 53 3b 20 4f |A, OR PR|OFITS; O|
|00000a10| 52 20 42 55 53 49 4e 45 | 53 53 20 49 4e 54 45 52 |R BUSINE|SS INTER|
|00000a20| 52 55 50 54 49 4f 4e 29 | 0a 20 2a 20 48 4f 57 45 |RUPTION)|. * HOWE|
|00000a30| 56 45 52 20 43 41 55 53 | 45 44 20 41 4e 44 20 4f |VER CAUS|ED AND O|
|00000a40| 4e 20 41 4e 59 20 54 48 | 45 4f 52 59 20 4f 46 20 |N ANY TH|EORY OF |
|00000a50| 4c 49 41 42 49 4c 49 54 | 59 2c 20 57 48 45 54 48 |LIABILIT|Y, WHETH|
|00000a60| 45 52 20 49 4e 20 43 4f | 4e 54 52 41 43 54 2c 20 |ER IN CO|NTRACT, |
|00000a70| 53 54 52 49 43 54 0a 20 | 2a 20 4c 49 41 42 49 4c |STRICT. |* LIABIL|
|00000a80| 49 54 59 2c 20 4f 52 20 | 54 4f 52 54 20 28 49 4e |ITY, OR |TORT (IN|
|00000a90| 43 4c 55 44 49 4e 47 20 | 4e 45 47 4c 49 47 45 4e |CLUDING |NEGLIGEN|
|00000aa0| 43 45 20 4f 52 20 4f 54 | 48 45 52 57 49 53 45 29 |CE OR OT|HERWISE)|
|00000ab0| 20 41 52 49 53 49 4e 47 | 20 49 4e 20 41 4e 59 20 | ARISING| IN ANY |
|00000ac0| 57 41 59 0a 20 2a 20 4f | 55 54 20 4f 46 20 54 48 |WAY. * O|UT OF TH|
|00000ad0| 45 20 55 53 45 20 4f 46 | 20 54 48 49 53 20 53 4f |E USE OF| THIS SO|
|00000ae0| 46 54 57 41 52 45 2c 20 | 45 56 45 4e 20 49 46 20 |FTWARE, |EVEN IF |
|00000af0| 41 44 56 49 53 45 44 20 | 4f 46 20 54 48 45 20 50 |ADVISED |OF THE P|
|00000b00| 4f 53 53 49 42 49 4c 49 | 54 59 20 4f 46 0a 20 2a |OSSIBILI|TY OF. *|
|00000b10| 20 53 55 43 48 20 44 41 | 4d 41 47 45 2e 0a 20 2a | SUCH DA|MAGE.. *|
|00000b20| 2f 0a 0a 23 69 66 20 64 | 65 66 69 6e 65 64 28 4c |/..#if d|efined(L|
|00000b30| 49 42 43 5f 53 43 43 53 | 29 20 26 26 20 21 64 65 |IBC_SCCS|) && !de|
|00000b40| 66 69 6e 65 64 28 6c 69 | 6e 74 29 0a 2f 2a 20 66 |fined(li|nt)./* f|
|00000b50| 72 6f 6d 3a 20 73 74 61 | 74 69 63 20 63 68 61 72 |rom: sta|tic char|
|00000b60| 20 73 63 63 73 69 64 5b | 5d 20 3d 20 22 40 28 23 | sccsid[|] = "@(#|
|00000b70| 29 65 72 72 2e 63 09 38 | 2e 31 20 28 42 65 72 6b |)err.c.8|.1 (Berk|
|00000b80| 65 6c 65 79 29 20 36 2f | 34 2f 39 33 22 3b 20 2a |eley) 6/|4/93"; *|
|00000b90| 2f 0a 73 74 61 74 69 63 | 20 63 68 61 72 20 2a 72 |/.static| char *r|
|00000ba0| 63 73 69 64 20 3d 20 22 | 24 49 64 3a 20 65 72 72 |csid = "|$Id: err|
|00000bb0| 2e 63 2c 76 20 31 2e 37 | 20 31 39 39 33 2f 31 31 |.c,v 1.7| 1993/11|
|00000bc0| 2f 30 36 20 30 30 3a 35 | 35 3a 32 33 20 63 67 64 |/06 00:5|5:23 cgd|
|00000bd0| 20 45 78 70 20 24 22 3b | 0a 23 65 6e 64 69 66 20 | Exp $";|.#endif |
|00000be0| 2f 2a 20 4c 49 42 43 5f | 53 43 43 53 20 61 6e 64 |/* LIBC_|SCCS and|
|00000bf0| 20 6e 6f 74 20 6c 69 6e | 74 20 2a 2f 0a 0a 23 69 | not lin|t */..#i|
|00000c00| 6e 63 6c 75 64 65 20 3c | 73 79 73 2f 63 64 65 66 |nclude <|sys/cdef|
|00000c10| 73 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 65 |s.h>.#in|clude <e|
|00000c20| 72 72 6e 6f 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |rrno.h>.|#include|
|00000c30| 20 3c 73 74 64 69 6f 2e | 68 3e 0a 23 69 6e 63 6c | <stdio.|h>.#incl|
|00000c40| 75 64 65 20 3c 73 74 64 | 6c 69 62 2e 68 3e 0a 23 |ude <std|lib.h>.#|
|00000c50| 69 6e 63 6c 75 64 65 20 | 3c 73 74 72 69 6e 67 2e |include |<string.|
|00000c60| 68 3e 0a 0a 23 69 66 64 | 65 66 20 5f 5f 53 54 44 |h>..#ifd|ef __STD|
|00000c70| 43 5f 5f 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |C__.#inc|lude <st|
|00000c80| 64 61 72 67 2e 68 3e 0a | 23 65 6c 73 65 0a 23 69 |darg.h>.|#else.#i|
|00000c90| 6e 63 6c 75 64 65 20 3c | 76 61 72 61 72 67 73 2e |nclude <|varargs.|
|00000ca0| 68 3e 0a 23 65 6e 64 69 | 66 0a 0a 65 78 74 65 72 |h>.#endi|f..exter|
|00000cb0| 6e 20 63 68 61 72 20 2a | 5f 5f 70 72 6f 67 6e 61 |n char *|__progna|
|00000cc0| 6d 65 3b 09 09 2f 2a 20 | 50 72 6f 67 72 61 6d 20 |me;../* |Program |
|00000cd0| 6e 61 6d 65 2c 20 66 72 | 6f 6d 20 63 72 74 30 2e |name, fr|om crt0.|
|00000ce0| 20 2a 2f 0a 0a 2f 2a 20 | 50 72 6f 74 6f 74 79 70 | */../* |Prototyp|
|00000cf0| 65 73 2e 20 2a 2f 0a 76 | 6f 69 64 09 65 72 72 20 |es. */.v|oid.err |
|00000d00| 5f 5f 50 28 28 69 6e 74 | 2c 20 63 6f 6e 73 74 20 |__P((int|, const |
|00000d10| 63 68 61 72 20 2a 2c 20 | 2e 2e 2e 29 29 3b 0a 76 |char *, |...));.v|
|00000d20| 6f 69 64 09 76 65 72 72 | 20 5f 5f 50 28 28 69 6e |oid.verr| __P((in|
|00000d30| 74 2c 20 63 6f 6e 73 74 | 20 63 68 61 72 20 2a 2c |t, const| char *,|
|00000d40| 20 76 61 5f 6c 69 73 74 | 29 29 3b 0a 76 6f 69 64 | va_list|));.void|
|00000d50| 09 65 72 72 78 20 5f 5f | 50 28 28 69 6e 74 2c 20 |.errx __|P((int, |
|00000d60| 63 6f 6e 73 74 20 63 68 | 61 72 20 2a 2c 20 2e 2e |const ch|ar *, ..|
|00000d70| 2e 29 29 3b 0a 76 6f 69 | 64 09 76 65 72 72 78 20 |.));.voi|d.verrx |
|00000d80| 5f 5f 50 28 28 69 6e 74 | 2c 20 63 6f 6e 73 74 20 |__P((int|, const |
|00000d90| 63 68 61 72 20 2a 2c 20 | 76 61 5f 6c 69 73 74 29 |char *, |va_list)|
|00000da0| 29 3b 0a 76 6f 69 64 09 | 77 61 72 6e 20 5f 5f 50 |);.void.|warn __P|
|00000db0| 28 28 63 6f 6e 73 74 20 | 63 68 61 72 20 2a 2c 20 |((const |char *, |
|00000dc0| 2e 2e 2e 29 29 3b 0a 76 | 6f 69 64 09 76 77 61 72 |...));.v|oid.vwar|
|00000dd0| 6e 20 5f 5f 50 28 28 63 | 6f 6e 73 74 20 63 68 61 |n __P((c|onst cha|
|00000de0| 72 20 2a 2c 20 76 61 5f | 6c 69 73 74 29 29 3b 0a |r *, va_|list));.|
|00000df0| 76 6f 69 64 09 77 61 72 | 6e 78 20 5f 5f 50 28 28 |void.war|nx __P((|
|00000e00| 63 6f 6e 73 74 20 63 68 | 61 72 20 2a 2c 20 2e 2e |const ch|ar *, ..|
|00000e10| 2e 29 29 3b 0a 76 6f 69 | 64 09 76 77 61 72 6e 78 |.));.voi|d.vwarnx|
|00000e20| 20 5f 5f 50 28 28 63 6f | 6e 73 74 20 63 68 61 72 | __P((co|nst char|
|00000e30| 20 2a 2c 20 76 61 5f 6c | 69 73 74 29 29 3b 0a 0a | *, va_l|ist));..|
|00000e40| 76 6f 69 64 0a 23 69 66 | 64 65 66 20 5f 5f 53 54 |void.#if|def __ST|
|00000e50| 44 43 5f 5f 0a 65 72 72 | 28 69 6e 74 20 65 76 61 |DC__.err|(int eva|
|00000e60| 6c 2c 20 63 6f 6e 73 74 | 20 63 68 61 72 20 2a 66 |l, const| char *f|
|00000e70| 6d 74 2c 20 2e 2e 2e 29 | 0a 23 65 6c 73 65 0a 65 |mt, ...)|.#else.e|
|00000e80| 72 72 28 65 76 61 6c 2c | 20 66 6d 74 2c 20 76 61 |rr(eval,| fmt, va|
|00000e90| 5f 61 6c 69 73 74 29 0a | 09 69 6e 74 20 65 76 61 |_alist).|.int eva|
|00000ea0| 6c 3b 0a 09 63 6f 6e 73 | 74 20 63 68 61 72 20 2a |l;..cons|t char *|
|00000eb0| 66 6d 74 3b 0a 09 76 61 | 5f 64 63 6c 0a 23 65 6e |fmt;..va|_dcl.#en|
|00000ec0| 64 69 66 0a 7b 0a 09 76 | 61 5f 6c 69 73 74 20 61 |dif.{..v|a_list a|
|00000ed0| 70 3b 0a 23 69 66 20 5f | 5f 53 54 44 43 5f 5f 0a |p;.#if _|_STDC__.|
|00000ee0| 09 76 61 5f 73 74 61 72 | 74 28 61 70 2c 20 66 6d |.va_star|t(ap, fm|
|00000ef0| 74 29 3b 0a 23 65 6c 73 | 65 0a 09 76 61 5f 73 74 |t);.#els|e..va_st|
|00000f00| 61 72 74 28 61 70 29 3b | 0a 23 65 6e 64 69 66 0a |art(ap);|.#endif.|
|00000f10| 09 76 65 72 72 28 65 76 | 61 6c 2c 20 66 6d 74 2c |.verr(ev|al, fmt,|
|00000f20| 20 61 70 29 3b 0a 09 76 | 61 5f 65 6e 64 28 61 70 | ap);..v|a_end(ap|
|00000f30| 29 3b 0a 7d 0a 0a 76 6f | 69 64 0a 76 65 72 72 28 |);.}..vo|id.verr(|
|00000f40| 65 76 61 6c 2c 20 66 6d | 74 2c 20 61 70 29 0a 09 |eval, fm|t, ap)..|
|00000f50| 69 6e 74 20 65 76 61 6c | 3b 0a 09 63 6f 6e 73 74 |int eval|;..const|
|00000f60| 20 63 68 61 72 20 2a 66 | 6d 74 3b 0a 09 76 61 5f | char *f|mt;..va_|
|00000f70| 6c 69 73 74 20 61 70 3b | 0a 7b 0a 09 69 6e 74 20 |list ap;|.{..int |
|00000f80| 73 76 65 72 72 6e 6f 3b | 0a 0a 09 73 76 65 72 72 |sverrno;|...sverr|
|00000f90| 6e 6f 20 3d 20 65 72 72 | 6e 6f 3b 0a 09 28 76 6f |no = err|no;..(vo|
|00000fa0| 69 64 29 66 70 72 69 6e | 74 66 28 73 74 64 65 72 |id)fprin|tf(stder|
|00000fb0| 72 2c 20 22 25 73 3a 20 | 22 2c 20 5f 5f 70 72 6f |r, "%s: |", __pro|
|00000fc0| 67 6e 61 6d 65 29 3b 0a | 09 69 66 20 28 66 6d 74 |gname);.|.if (fmt|
|00000fd0| 20 21 3d 20 4e 55 4c 4c | 29 20 7b 0a 09 09 28 76 | != NULL|) {...(v|
|00000fe0| 6f 69 64 29 76 66 70 72 | 69 6e 74 66 28 73 74 64 |oid)vfpr|intf(std|
|00000ff0| 65 72 72 2c 20 66 6d 74 | 2c 20 61 70 29 3b 0a 09 |err, fmt|, ap);..|
|00001000| 09 28 76 6f 69 64 29 66 | 70 72 69 6e 74 66 28 73 |.(void)f|printf(s|
|00001010| 74 64 65 72 72 2c 20 22 | 3a 20 22 29 3b 0a 09 7d |tderr, "|: ");..}|
|00001020| 0a 09 28 76 6f 69 64 29 | 66 70 72 69 6e 74 66 28 |..(void)|fprintf(|
|00001030| 73 74 64 65 72 72 2c 20 | 22 25 73 5c 6e 22 2c 20 |stderr, |"%s\n", |
|00001040| 73 74 72 65 72 72 6f 72 | 28 73 76 65 72 72 6e 6f |strerror|(sverrno|
|00001050| 29 29 3b 0a 09 65 78 69 | 74 28 65 76 61 6c 29 3b |));..exi|t(eval);|
|00001060| 0a 7d 0a 0a 76 6f 69 64 | 0a 23 69 66 20 5f 5f 53 |.}..void|.#if __S|
|00001070| 54 44 43 5f 5f 0a 65 72 | 72 78 28 69 6e 74 20 65 |TDC__.er|rx(int e|
|00001080| 76 61 6c 2c 20 63 6f 6e | 73 74 20 63 68 61 72 20 |val, con|st char |
|00001090| 2a 66 6d 74 2c 20 2e 2e | 2e 29 0a 23 65 6c 73 65 |*fmt, ..|.).#else|
|000010a0| 0a 65 72 72 78 28 65 76 | 61 6c 2c 20 66 6d 74 2c |.errx(ev|al, fmt,|
|000010b0| 20 76 61 5f 61 6c 69 73 | 74 29 0a 09 69 6e 74 20 | va_alis|t)..int |
|000010c0| 65 76 61 6c 3b 0a 09 63 | 6f 6e 73 74 20 63 68 61 |eval;..c|onst cha|
|000010d0| 72 20 2a 66 6d 74 3b 0a | 09 76 61 5f 64 63 6c 0a |r *fmt;.|.va_dcl.|
|000010e0| 23 65 6e 64 69 66 0a 7b | 0a 09 76 61 5f 6c 69 73 |#endif.{|..va_lis|
|000010f0| 74 20 61 70 3b 0a 23 69 | 66 20 5f 5f 53 54 44 43 |t ap;.#i|f __STDC|
|00001100| 5f 5f 0a 09 76 61 5f 73 | 74 61 72 74 28 61 70 2c |__..va_s|tart(ap,|
|00001110| 20 66 6d 74 29 3b 0a 23 | 65 6c 73 65 0a 09 76 61 | fmt);.#|else..va|
|00001120| 5f 73 74 61 72 74 28 61 | 70 29 3b 0a 23 65 6e 64 |_start(a|p);.#end|
|00001130| 69 66 0a 09 76 65 72 72 | 78 28 65 76 61 6c 2c 20 |if..verr|x(eval, |
|00001140| 66 6d 74 2c 20 61 70 29 | 3b 0a 09 76 61 5f 65 6e |fmt, ap)|;..va_en|
|00001150| 64 28 61 70 29 3b 0a 7d | 0a 0a 76 6f 69 64 0a 76 |d(ap);.}|..void.v|
|00001160| 65 72 72 78 28 65 76 61 | 6c 2c 20 66 6d 74 2c 20 |errx(eva|l, fmt, |
|00001170| 61 70 29 0a 09 69 6e 74 | 20 65 76 61 6c 3b 0a 09 |ap)..int| eval;..|
|00001180| 63 6f 6e 73 74 20 63 68 | 61 72 20 2a 66 6d 74 3b |const ch|ar *fmt;|
|00001190| 0a 09 76 61 5f 6c 69 73 | 74 20 61 70 3b 0a 7b 0a |..va_lis|t ap;.{.|
|000011a0| 09 28 76 6f 69 64 29 66 | 70 72 69 6e 74 66 28 73 |.(void)f|printf(s|
|000011b0| 74 64 65 72 72 2c 20 22 | 25 73 3a 20 22 2c 20 5f |tderr, "|%s: ", _|
|000011c0| 5f 70 72 6f 67 6e 61 6d | 65 29 3b 0a 09 69 66 20 |_prognam|e);..if |
|000011d0| 28 66 6d 74 20 21 3d 20 | 4e 55 4c 4c 29 0a 09 09 |(fmt != |NULL)...|
|000011e0| 28 76 6f 69 64 29 76 66 | 70 72 69 6e 74 66 28 73 |(void)vf|printf(s|
|000011f0| 74 64 65 72 72 2c 20 66 | 6d 74 2c 20 61 70 29 3b |tderr, f|mt, ap);|
|00001200| 0a 09 28 76 6f 69 64 29 | 66 70 72 69 6e 74 66 28 |..(void)|fprintf(|
|00001210| 73 74 64 65 72 72 2c 20 | 22 5c 6e 22 29 3b 0a 09 |stderr, |"\n");..|
|00001220| 65 78 69 74 28 65 76 61 | 6c 29 3b 0a 7d 0a 0a 76 |exit(eva|l);.}..v|
|00001230| 6f 69 64 0a 23 69 66 20 | 5f 5f 53 54 44 43 5f 5f |oid.#if |__STDC__|
|00001240| 0a 77 61 72 6e 28 63 6f | 6e 73 74 20 63 68 61 72 |.warn(co|nst char|
|00001250| 20 2a 66 6d 74 2c 20 2e | 2e 2e 29 0a 23 65 6c 73 | *fmt, .|..).#els|
|00001260| 65 0a 77 61 72 6e 28 66 | 6d 74 2c 20 76 61 5f 61 |e.warn(f|mt, va_a|
|00001270| 6c 69 73 74 29 0a 09 63 | 6f 6e 73 74 20 63 68 61 |list)..c|onst cha|
|00001280| 72 20 2a 66 6d 74 3b 0a | 09 76 61 5f 64 63 6c 0a |r *fmt;.|.va_dcl.|
|00001290| 23 65 6e 64 69 66 0a 7b | 0a 09 76 61 5f 6c 69 73 |#endif.{|..va_lis|
|000012a0| 74 20 61 70 3b 0a 23 69 | 66 20 5f 5f 53 54 44 43 |t ap;.#i|f __STDC|
|000012b0| 5f 5f 0a 09 76 61 5f 73 | 74 61 72 74 28 61 70 2c |__..va_s|tart(ap,|
|000012c0| 20 66 6d 74 29 3b 0a 23 | 65 6c 73 65 0a 09 76 61 | fmt);.#|else..va|
|000012d0| 5f 73 74 61 72 74 28 61 | 70 29 3b 0a 23 65 6e 64 |_start(a|p);.#end|
|000012e0| 69 66 0a 09 76 77 61 72 | 6e 28 66 6d 74 2c 20 61 |if..vwar|n(fmt, a|
|000012f0| 70 29 3b 0a 09 76 61 5f | 65 6e 64 28 61 70 29 3b |p);..va_|end(ap);|
|00001300| 0a 7d 0a 0a 76 6f 69 64 | 0a 76 77 61 72 6e 28 66 |.}..void|.vwarn(f|
|00001310| 6d 74 2c 20 61 70 29 0a | 09 63 6f 6e 73 74 20 63 |mt, ap).|.const c|
|00001320| 68 61 72 20 2a 66 6d 74 | 3b 0a 09 76 61 5f 6c 69 |har *fmt|;..va_li|
|00001330| 73 74 20 61 70 3b 0a 7b | 0a 09 69 6e 74 20 73 76 |st ap;.{|..int sv|
|00001340| 65 72 72 6e 6f 3b 0a 0a | 09 73 76 65 72 72 6e 6f |errno;..|.sverrno|
|00001350| 20 3d 20 65 72 72 6e 6f | 3b 0a 09 28 76 6f 69 64 | = errno|;..(void|
|00001360| 29 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c |)fprintf|(stderr,|
|00001370| 20 22 25 73 3a 20 22 2c | 20 5f 5f 70 72 6f 67 6e | "%s: ",| __progn|
|00001380| 61 6d 65 29 3b 0a 09 69 | 66 20 28 66 6d 74 20 21 |ame);..i|f (fmt !|
|00001390| 3d 20 4e 55 4c 4c 29 20 | 7b 0a 09 09 28 76 6f 69 |= NULL) |{...(voi|
|000013a0| 64 29 76 66 70 72 69 6e | 74 66 28 73 74 64 65 72 |d)vfprin|tf(stder|
|000013b0| 72 2c 20 66 6d 74 2c 20 | 61 70 29 3b 0a 09 09 28 |r, fmt, |ap);...(|
|000013c0| 76 6f 69 64 29 66 70 72 | 69 6e 74 66 28 73 74 64 |void)fpr|intf(std|
|000013d0| 65 72 72 2c 20 22 3a 20 | 22 29 3b 0a 09 7d 0a 09 |err, ": |");..}..|
|000013e0| 28 76 6f 69 64 29 66 70 | 72 69 6e 74 66 28 73 74 |(void)fp|rintf(st|
|000013f0| 64 65 72 72 2c 20 22 25 | 73 5c 6e 22 2c 20 73 74 |derr, "%|s\n", st|
|00001400| 72 65 72 72 6f 72 28 73 | 76 65 72 72 6e 6f 29 29 |rerror(s|verrno))|
|00001410| 3b 0a 7d 0a 0a 76 6f 69 | 64 0a 23 69 66 64 65 66 |;.}..voi|d.#ifdef|
|00001420| 20 5f 5f 53 54 44 43 5f | 5f 0a 77 61 72 6e 78 28 | __STDC_|_.warnx(|
|00001430| 63 6f 6e 73 74 20 63 68 | 61 72 20 2a 66 6d 74 2c |const ch|ar *fmt,|
|00001440| 20 2e 2e 2e 29 0a 23 65 | 6c 73 65 0a 77 61 72 6e | ...).#e|lse.warn|
|00001450| 78 28 66 6d 74 2c 20 76 | 61 5f 61 6c 69 73 74 29 |x(fmt, v|a_alist)|
|00001460| 0a 09 63 6f 6e 73 74 20 | 63 68 61 72 20 2a 66 6d |..const |char *fm|
|00001470| 74 3b 0a 09 76 61 5f 64 | 63 6c 0a 23 65 6e 64 69 |t;..va_d|cl.#endi|
|00001480| 66 0a 7b 0a 09 76 61 5f | 6c 69 73 74 20 61 70 3b |f.{..va_|list ap;|
|00001490| 0a 23 69 66 64 65 66 20 | 5f 5f 53 54 44 43 5f 5f |.#ifdef |__STDC__|
|000014a0| 0a 09 76 61 5f 73 74 61 | 72 74 28 61 70 2c 20 66 |..va_sta|rt(ap, f|
|000014b0| 6d 74 29 3b 0a 23 65 6c | 73 65 0a 09 76 61 5f 73 |mt);.#el|se..va_s|
|000014c0| 74 61 72 74 28 61 70 29 | 3b 0a 23 65 6e 64 69 66 |tart(ap)|;.#endif|
|000014d0| 0a 09 76 77 61 72 6e 78 | 28 66 6d 74 2c 20 61 70 |..vwarnx|(fmt, ap|
|000014e0| 29 3b 0a 09 76 61 5f 65 | 6e 64 28 61 70 29 3b 0a |);..va_e|nd(ap);.|
|000014f0| 7d 0a 0a 76 6f 69 64 0a | 76 77 61 72 6e 78 28 66 |}..void.|vwarnx(f|
|00001500| 6d 74 2c 20 61 70 29 0a | 09 63 6f 6e 73 74 20 63 |mt, ap).|.const c|
|00001510| 68 61 72 20 2a 66 6d 74 | 3b 0a 09 76 61 5f 6c 69 |har *fmt|;..va_li|
|00001520| 73 74 20 61 70 3b 0a 7b | 0a 09 28 76 6f 69 64 29 |st ap;.{|..(void)|
|00001530| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 20 |fprintf(|stderr, |
|00001540| 22 25 73 3a 20 22 2c 20 | 5f 5f 70 72 6f 67 6e 61 |"%s: ", |__progna|
|00001550| 6d 65 29 3b 0a 09 69 66 | 20 28 66 6d 74 20 21 3d |me);..if| (fmt !=|
|00001560| 20 4e 55 4c 4c 29 0a 09 | 09 28 76 6f 69 64 29 76 | NULL)..|.(void)v|
|00001570| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 20 |fprintf(|stderr, |
|00001580| 66 6d 74 2c 20 61 70 29 | 3b 0a 09 28 76 6f 69 64 |fmt, ap)|;..(void|
|00001590| 29 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c |)fprintf|(stderr,|
|000015a0| 20 22 5c 6e 22 29 3b 0a | 7d 0a 00 00 00 00 00 00 | "\n");.|}.......|
|000015b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001600| 62 73 64 2e 66 74 70 64 | 2f 65 72 72 2e 68 00 00 |bsd.ftpd|/err.h..|
|00001610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001660| 00 00 00 00 31 30 30 36 | 30 30 20 00 20 20 20 37 |....1006|00 . 7|
|00001670| 36 34 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |64 . 1|44 . |
|00001680| 20 20 20 20 37 36 31 20 | 20 36 30 32 34 32 32 35 | 761 | 6024225|
|00001690| 31 37 34 20 20 31 32 34 | 31 31 00 20 30 00 00 00 |174 124|11. 0...|
|000016a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001700| 00 75 73 74 61 72 20 20 | 00 64 6f 77 6e 73 6a 00 |.ustar |.downsj.|
|00001710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001720| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00001730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001800| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 63 64 |#include| <sys/cd|
|00001810| 65 66 73 2e 68 3e 0a 0a | 23 69 66 64 65 66 20 5f |efs.h>..|#ifdef _|
|00001820| 5f 53 54 44 43 5f 5f 0a | 23 69 6e 63 6c 75 64 65 |_STDC__.|#include|
|00001830| 20 3c 73 74 64 61 72 67 | 2e 68 3e 0a 23 65 6c 73 | <stdarg|.h>.#els|
|00001840| 65 0a 23 69 6e 63 6c 75 | 64 65 20 3c 76 61 72 61 |e.#inclu|de <vara|
|00001850| 72 67 73 2e 68 3e 0a 23 | 65 6e 64 69 66 0a 0a 2f |rgs.h>.#|endif../|
|00001860| 2a 20 50 72 6f 74 6f 74 | 79 70 65 73 2e 20 2a 2f |* Protot|ypes. */|
|00001870| 0a 65 78 74 65 72 6e 20 | 76 6f 69 64 09 65 72 72 |.extern |void.err|
|00001880| 20 5f 5f 50 28 28 69 6e | 74 2c 20 63 6f 6e 73 74 | __P((in|t, const|
|00001890| 20 63 68 61 72 20 2a 2c | 20 2e 2e 2e 29 29 3b 0a | char *,| ...));.|
|000018a0| 65 78 74 65 72 6e 20 76 | 6f 69 64 09 76 65 72 72 |extern v|oid.verr|
|000018b0| 20 5f 5f 50 28 28 69 6e | 74 2c 20 63 6f 6e 73 74 | __P((in|t, const|
|000018c0| 20 63 68 61 72 20 2a 2c | 20 76 61 5f 6c 69 73 74 | char *,| va_list|
|000018d0| 29 29 3b 0a 65 78 74 65 | 72 6e 20 76 6f 69 64 09 |));.exte|rn void.|
|000018e0| 65 72 72 78 20 5f 5f 50 | 28 28 69 6e 74 2c 20 63 |errx __P|((int, c|
|000018f0| 6f 6e 73 74 20 63 68 61 | 72 20 2a 2c 20 2e 2e 2e |onst cha|r *, ...|
|00001900| 29 29 3b 0a 65 78 74 65 | 72 6e 20 76 6f 69 64 09 |));.exte|rn void.|
|00001910| 76 65 72 72 78 20 5f 5f | 50 28 28 69 6e 74 2c 20 |verrx __|P((int, |
|00001920| 63 6f 6e 73 74 20 63 68 | 61 72 20 2a 2c 20 76 61 |const ch|ar *, va|
|00001930| 5f 6c 69 73 74 29 29 3b | 0a 65 78 74 65 72 6e 20 |_list));|.extern |
|00001940| 76 6f 69 64 09 77 61 72 | 6e 20 5f 5f 50 28 28 63 |void.war|n __P((c|
|00001950| 6f 6e 73 74 20 63 68 61 | 72 20 2a 2c 20 2e 2e 2e |onst cha|r *, ...|
|00001960| 29 29 3b 0a 65 78 74 65 | 72 6e 20 76 6f 69 64 09 |));.exte|rn void.|
|00001970| 76 77 61 72 6e 20 5f 5f | 50 28 28 63 6f 6e 73 74 |vwarn __|P((const|
|00001980| 20 63 68 61 72 20 2a 2c | 20 76 61 5f 6c 69 73 74 | char *,| va_list|
|00001990| 29 29 3b 0a 65 78 74 65 | 72 6e 20 76 6f 69 64 09 |));.exte|rn void.|
|000019a0| 77 61 72 6e 78 20 5f 5f | 50 28 28 63 6f 6e 73 74 |warnx __|P((const|
|000019b0| 20 63 68 61 72 20 2a 2c | 20 2e 2e 2e 29 29 3b 0a | char *,| ...));.|
|000019c0| 65 78 74 65 72 6e 20 76 | 6f 69 64 09 76 77 61 72 |extern v|oid.vwar|
|000019d0| 6e 78 20 5f 5f 50 28 28 | 63 6f 6e 73 74 20 63 68 |nx __P((|const ch|
|000019e0| 61 72 20 2a 2c 20 76 61 | 5f 6c 69 73 74 29 29 3b |ar *, va|_list));|
|000019f0| 0a 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a00| 62 73 64 2e 66 74 70 64 | 2f 4d 61 6b 65 66 69 6c |bsd.ftpd|/Makefil|
|00001a10| 65 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |e.......|........|
|00001a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a60| 00 00 00 00 31 30 30 36 | 30 30 20 00 20 20 20 37 |....1006|00 . 7|
|00001a70| 36 34 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |64 . 1|44 . |
|00001a80| 20 20 20 20 34 35 31 20 | 20 36 30 32 34 32 33 36 | 451 | 6024236|
|00001a90| 31 37 30 20 20 31 33 31 | 30 32 00 20 30 00 00 00 |170 131|02. 0...|
|00001aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b00| 00 75 73 74 61 72 20 20 | 00 64 6f 77 6e 73 6a 00 |.ustar |.downsj.|
|00001b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b20| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00001b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c00| 43 43 3d 09 67 63 63 0a | 43 46 4c 41 47 53 3d 09 |CC=.gcc.|CFLAGS=.|
|00001c10| 2d 4f 0a 4c 49 42 53 3d | 0a 0a 53 52 43 53 3d 09 |-O.LIBS=|..SRCS=.|
|00001c20| 66 74 70 64 2e 63 20 66 | 74 70 63 6d 64 2e 63 20 |ftpd.c f|tpcmd.c |
|00001c30| 6c 6f 67 77 74 6d 70 2e | 63 20 70 6f 70 65 6e 2e |logwtmp.|c popen.|
|00001c40| 63 20 65 72 72 2e 63 20 | 67 6c 6f 62 2e 63 0a 4f |c err.c |glob.c.O|
|00001c50| 42 4a 53 3d 09 66 74 70 | 64 2e 6f 20 66 74 70 63 |BJS=.ftp|d.o ftpc|
|00001c60| 6d 64 2e 6f 20 6c 6f 67 | 77 74 6d 70 2e 6f 20 70 |md.o log|wtmp.o p|
|00001c70| 6f 70 65 6e 2e 6f 20 65 | 72 72 2e 6f 20 67 6c 6f |open.o e|rr.o glo|
|00001c80| 62 2e 6f 0a 0a 61 6c 6c | 3a 09 62 73 64 2e 66 74 |b.o..all|:.bsd.ft|
|00001c90| 70 64 20 6d 61 6e 0a 0a | 62 73 64 2e 66 74 70 64 |pd man..|bsd.ftpd|
|00001ca0| 3a 09 24 7b 4f 42 4a 53 | 7d 0a 09 24 7b 43 43 7d |:.${OBJS|}..${CC}|
|00001cb0| 20 24 7b 4f 42 4a 53 7d | 20 2d 6f 20 62 73 64 2e | ${OBJS}| -o bsd.|
|00001cc0| 66 74 70 64 20 24 7b 4c | 49 42 53 7d 0a 0a 6d 61 |ftpd ${L|IBS}..ma|
|00001cd0| 6e 3a 09 66 74 70 64 2e | 38 0a 09 6e 72 6f 66 66 |n:.ftpd.|8..nroff|
|00001ce0| 20 2d 6d 61 6e 64 6f 63 | 20 66 74 70 64 2e 38 20 | -mandoc| ftpd.8 |
|00001cf0| 3e 20 62 73 64 2e 66 74 | 70 64 2e 30 0a 0a 63 6c |> bsd.ft|pd.0..cl|
|00001d00| 65 61 6e 3a 0a 09 2d 72 | 6d 20 2d 66 20 24 7b 4f |ean:..-r|m -f ${O|
|00001d10| 42 4a 53 7d 20 62 73 64 | 2e 66 74 70 64 20 62 73 |BJS} bsd|.ftpd bs|
|00001d20| 64 2e 66 74 70 64 2e 30 | 0a 00 00 00 00 00 00 00 |d.ftpd.0|........|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 62 73 64 2e 66 74 70 64 | 2f 65 78 74 65 72 6e 2e |bsd.ftpd|/extern.|
|00001e10| 68 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |h.......|........|
|00001e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e60| 00 00 00 00 31 30 30 36 | 30 30 20 00 20 20 20 37 |....1006|00 . 7|
|00001e70| 36 34 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |64 . 1|44 . |
|00001e80| 20 20 20 35 35 32 37 20 | 20 36 30 31 30 30 37 30 | 5527 | 6010070|
|00001e90| 34 34 32 20 20 31 33 31 | 34 32 00 20 30 00 00 00 |442 131|42. 0...|
|00001ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f00| 00 75 73 74 61 72 20 20 | 00 64 6f 77 6e 73 6a 00 |.ustar |.downsj.|
|00001f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f20| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00001f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002000| 2f 2a 09 24 4e 65 74 42 | 53 44 3a 20 65 78 74 65 |/*.$NetB|SD: exte|
|00002010| 72 6e 2e 68 2c 76 20 31 | 2e 32 20 31 39 39 35 2f |rn.h,v 1|.2 1995/|
|00002020| 30 34 2f 31 31 20 30 32 | 3a 34 34 3a 34 39 20 63 |04/11 02|:44:49 c|
|00002030| 67 64 20 45 78 70 20 24 | 09 2a 2f 0a 0a 2f 2a 2d |gd Exp $|.*/../*-|
|00002040| 0a 20 2a 20 43 6f 70 79 | 72 69 67 68 74 20 28 63 |. * Copy|right (c|
|00002050| 29 20 31 39 39 32 2c 20 | 31 39 39 33 0a 20 2a 09 |) 1992, |1993. *.|
|00002060| 54 68 65 20 52 65 67 65 | 6e 74 73 20 6f 66 20 74 |The Rege|nts of t|
|00002070| 68 65 20 55 6e 69 76 65 | 72 73 69 74 79 20 6f 66 |he Unive|rsity of|
|00002080| 20 43 61 6c 69 66 6f 72 | 6e 69 61 2e 20 20 41 6c | Califor|nia. Al|
|00002090| 6c 20 72 69 67 68 74 73 | 20 72 65 73 65 72 76 65 |l rights| reserve|
|000020a0| 64 2e 0a 20 2a 0a 20 2a | 20 52 65 64 69 73 74 72 |d.. *. *| Redistr|
|000020b0| 69 62 75 74 69 6f 6e 20 | 61 6e 64 20 75 73 65 20 |ibution |and use |
|000020c0| 69 6e 20 73 6f 75 72 63 | 65 20 61 6e 64 20 62 69 |in sourc|e and bi|
|000020d0| 6e 61 72 79 20 66 6f 72 | 6d 73 2c 20 77 69 74 68 |nary for|ms, with|
|000020e0| 20 6f 72 20 77 69 74 68 | 6f 75 74 0a 20 2a 20 6d | or with|out. * m|
|000020f0| 6f 64 69 66 69 63 61 74 | 69 6f 6e 2c 20 61 72 65 |odificat|ion, are|
|00002100| 20 70 65 72 6d 69 74 74 | 65 64 20 70 72 6f 76 69 | permitt|ed provi|
|00002110| 64 65 64 20 74 68 61 74 | 20 74 68 65 20 66 6f 6c |ded that| the fol|
|00002120| 6c 6f 77 69 6e 67 20 63 | 6f 6e 64 69 74 69 6f 6e |lowing c|ondition|
|00002130| 73 0a 20 2a 20 61 72 65 | 20 6d 65 74 3a 0a 20 2a |s. * are| met:. *|
|00002140| 20 31 2e 20 52 65 64 69 | 73 74 72 69 62 75 74 69 | 1. Redi|stributi|
|00002150| 6f 6e 73 20 6f 66 20 73 | 6f 75 72 63 65 20 63 6f |ons of s|ource co|
|00002160| 64 65 20 6d 75 73 74 20 | 72 65 74 61 69 6e 20 74 |de must |retain t|
|00002170| 68 65 20 61 62 6f 76 65 | 20 63 6f 70 79 72 69 67 |he above| copyrig|
|00002180| 68 74 0a 20 2a 20 20 20 | 20 6e 6f 74 69 63 65 2c |ht. * | notice,|
|00002190| 20 74 68 69 73 20 6c 69 | 73 74 20 6f 66 20 63 6f | this li|st of co|
|000021a0| 6e 64 69 74 69 6f 6e 73 | 20 61 6e 64 20 74 68 65 |nditions| and the|
|000021b0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 64 69 73 63 6c | followi|ng discl|
|000021c0| 61 69 6d 65 72 2e 0a 20 | 2a 20 32 2e 20 52 65 64 |aimer.. |* 2. Red|
|000021d0| 69 73 74 72 69 62 75 74 | 69 6f 6e 73 20 69 6e 20 |istribut|ions in |
|000021e0| 62 69 6e 61 72 79 20 66 | 6f 72 6d 20 6d 75 73 74 |binary f|orm must|
|000021f0| 20 72 65 70 72 6f 64 75 | 63 65 20 74 68 65 20 61 | reprodu|ce the a|
|00002200| 62 6f 76 65 20 63 6f 70 | 79 72 69 67 68 74 0a 20 |bove cop|yright. |
|00002210| 2a 20 20 20 20 6e 6f 74 | 69 63 65 2c 20 74 68 69 |* not|ice, thi|
|00002220| 73 20 6c 69 73 74 20 6f | 66 20 63 6f 6e 64 69 74 |s list o|f condit|
|00002230| 69 6f 6e 73 20 61 6e 64 | 20 74 68 65 20 66 6f 6c |ions and| the fol|
|00002240| 6c 6f 77 69 6e 67 20 64 | 69 73 63 6c 61 69 6d 65 |lowing d|isclaime|
|00002250| 72 20 69 6e 20 74 68 65 | 0a 20 2a 20 20 20 20 64 |r in the|. * d|
|00002260| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 61 6e 64 |ocumenta|tion and|
|00002270| 2f 6f 72 20 6f 74 68 65 | 72 20 6d 61 74 65 72 69 |/or othe|r materi|
|00002280| 61 6c 73 20 70 72 6f 76 | 69 64 65 64 20 77 69 74 |als prov|ided wit|
|00002290| 68 20 74 68 65 20 64 69 | 73 74 72 69 62 75 74 69 |h the di|stributi|
|000022a0| 6f 6e 2e 0a 20 2a 20 33 | 2e 20 41 6c 6c 20 61 64 |on.. * 3|. All ad|
|000022b0| 76 65 72 74 69 73 69 6e | 67 20 6d 61 74 65 72 69 |vertisin|g materi|
|000022c0| 61 6c 73 20 6d 65 6e 74 | 69 6f 6e 69 6e 67 20 66 |als ment|ioning f|
|000022d0| 65 61 74 75 72 65 73 20 | 6f 72 20 75 73 65 20 6f |eatures |or use o|
|000022e0| 66 20 74 68 69 73 20 73 | 6f 66 74 77 61 72 65 0a |f this s|oftware.|
|000022f0| 20 2a 20 20 20 20 6d 75 | 73 74 20 64 69 73 70 6c | * mu|st displ|
|00002300| 61 79 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ay the f|ollowing|
|00002310| 20 61 63 6b 6e 6f 77 6c | 65 64 67 65 6d 65 6e 74 | acknowl|edgement|
|00002320| 3a 0a 20 2a 09 54 68 69 | 73 20 70 72 6f 64 75 63 |:. *.Thi|s produc|
|00002330| 74 20 69 6e 63 6c 75 64 | 65 73 20 73 6f 66 74 77 |t includ|es softw|
|00002340| 61 72 65 20 64 65 76 65 | 6c 6f 70 65 64 20 62 79 |are deve|loped by|
|00002350| 20 74 68 65 20 55 6e 69 | 76 65 72 73 69 74 79 20 | the Uni|versity |
|00002360| 6f 66 0a 20 2a 09 43 61 | 6c 69 66 6f 72 6e 69 61 |of. *.Ca|lifornia|
|00002370| 2c 20 42 65 72 6b 65 6c | 65 79 20 61 6e 64 20 69 |, Berkel|ey and i|
|00002380| 74 73 20 63 6f 6e 74 72 | 69 62 75 74 6f 72 73 2e |ts contr|ibutors.|
|00002390| 0a 20 2a 20 34 2e 20 4e | 65 69 74 68 65 72 20 74 |. * 4. N|either t|
|000023a0| 68 65 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 55 |he name |of the U|
|000023b0| 6e 69 76 65 72 73 69 74 | 79 20 6e 6f 72 20 74 68 |niversit|y nor th|
|000023c0| 65 20 6e 61 6d 65 73 20 | 6f 66 20 69 74 73 20 63 |e names |of its c|
|000023d0| 6f 6e 74 72 69 62 75 74 | 6f 72 73 0a 20 2a 20 20 |ontribut|ors. * |
|000023e0| 20 20 6d 61 79 20 62 65 | 20 75 73 65 64 20 74 6f | may be| used to|
|000023f0| 20 65 6e 64 6f 72 73 65 | 20 6f 72 20 70 72 6f 6d | endorse| or prom|
|00002400| 6f 74 65 20 70 72 6f 64 | 75 63 74 73 20 64 65 72 |ote prod|ucts der|
|00002410| 69 76 65 64 20 66 72 6f | 6d 20 74 68 69 73 20 73 |ived fro|m this s|
|00002420| 6f 66 74 77 61 72 65 0a | 20 2a 20 20 20 20 77 69 |oftware.| * wi|
|00002430| 74 68 6f 75 74 20 73 70 | 65 63 69 66 69 63 20 70 |thout sp|ecific p|
|00002440| 72 69 6f 72 20 77 72 69 | 74 74 65 6e 20 70 65 72 |rior wri|tten per|
|00002450| 6d 69 73 73 69 6f 6e 2e | 0a 20 2a 0a 20 2a 20 54 |mission.|. *. * T|
|00002460| 48 49 53 20 53 4f 46 54 | 57 41 52 45 20 49 53 20 |HIS SOFT|WARE IS |
|00002470| 50 52 4f 56 49 44 45 44 | 20 42 59 20 54 48 45 20 |PROVIDED| BY THE |
|00002480| 52 45 47 45 4e 54 53 20 | 41 4e 44 20 43 4f 4e 54 |REGENTS |AND CONT|
|00002490| 52 49 42 55 54 4f 52 53 | 20 60 60 41 53 20 49 53 |RIBUTORS| ``AS IS|
|000024a0| 27 27 20 41 4e 44 0a 20 | 2a 20 41 4e 59 20 45 58 |'' AND. |* ANY EX|
|000024b0| 50 52 45 53 53 20 4f 52 | 20 49 4d 50 4c 49 45 44 |PRESS OR| IMPLIED|
|000024c0| 20 57 41 52 52 41 4e 54 | 49 45 53 2c 20 49 4e 43 | WARRANT|IES, INC|
|000024d0| 4c 55 44 49 4e 47 2c 20 | 42 55 54 20 4e 4f 54 20 |LUDING, |BUT NOT |
|000024e0| 4c 49 4d 49 54 45 44 20 | 54 4f 2c 20 54 48 45 0a |LIMITED |TO, THE.|
|000024f0| 20 2a 20 49 4d 50 4c 49 | 45 44 20 57 41 52 52 41 | * IMPLI|ED WARRA|
|00002500| 4e 54 49 45 53 20 4f 46 | 20 4d 45 52 43 48 41 4e |NTIES OF| MERCHAN|
|00002510| 54 41 42 49 4c 49 54 59 | 20 41 4e 44 20 46 49 54 |TABILITY| AND FIT|
|00002520| 4e 45 53 53 20 46 4f 52 | 20 41 20 50 41 52 54 49 |NESS FOR| A PARTI|
|00002530| 43 55 4c 41 52 20 50 55 | 52 50 4f 53 45 0a 20 2a |CULAR PU|RPOSE. *|
|00002540| 20 41 52 45 20 44 49 53 | 43 4c 41 49 4d 45 44 2e | ARE DIS|CLAIMED.|
|00002550| 20 20 49 4e 20 4e 4f 20 | 45 56 45 4e 54 20 53 48 | IN NO |EVENT SH|
|00002560| 41 4c 4c 20 54 48 45 20 | 52 45 47 45 4e 54 53 20 |ALL THE |REGENTS |
|00002570| 4f 52 20 43 4f 4e 54 52 | 49 42 55 54 4f 52 53 20 |OR CONTR|IBUTORS |
|00002580| 42 45 20 4c 49 41 42 4c | 45 0a 20 2a 20 46 4f 52 |BE LIABL|E. * FOR|
|00002590| 20 41 4e 59 20 44 49 52 | 45 43 54 2c 20 49 4e 44 | ANY DIR|ECT, IND|
|000025a0| 49 52 45 43 54 2c 20 49 | 4e 43 49 44 45 4e 54 41 |IRECT, I|NCIDENTA|
|000025b0| 4c 2c 20 53 50 45 43 49 | 41 4c 2c 20 45 58 45 4d |L, SPECI|AL, EXEM|
|000025c0| 50 4c 41 52 59 2c 20 4f | 52 20 43 4f 4e 53 45 51 |PLARY, O|R CONSEQ|
|000025d0| 55 45 4e 54 49 41 4c 0a | 20 2a 20 44 41 4d 41 47 |UENTIAL.| * DAMAG|
|000025e0| 45 53 20 28 49 4e 43 4c | 55 44 49 4e 47 2c 20 42 |ES (INCL|UDING, B|
|000025f0| 55 54 20 4e 4f 54 20 4c | 49 4d 49 54 45 44 20 54 |UT NOT L|IMITED T|
|00002600| 4f 2c 20 50 52 4f 43 55 | 52 45 4d 45 4e 54 20 4f |O, PROCU|REMENT O|
|00002610| 46 20 53 55 42 53 54 49 | 54 55 54 45 20 47 4f 4f |F SUBSTI|TUTE GOO|
|00002620| 44 53 0a 20 2a 20 4f 52 | 20 53 45 52 56 49 43 45 |DS. * OR| SERVICE|
|00002630| 53 3b 20 4c 4f 53 53 20 | 4f 46 20 55 53 45 2c 20 |S; LOSS |OF USE, |
|00002640| 44 41 54 41 2c 20 4f 52 | 20 50 52 4f 46 49 54 53 |DATA, OR| PROFITS|
|00002650| 3b 20 4f 52 20 42 55 53 | 49 4e 45 53 53 20 49 4e |; OR BUS|INESS IN|
|00002660| 54 45 52 52 55 50 54 49 | 4f 4e 29 0a 20 2a 20 48 |TERRUPTI|ON). * H|
|00002670| 4f 57 45 56 45 52 20 43 | 41 55 53 45 44 20 41 4e |OWEVER C|AUSED AN|
|00002680| 44 20 4f 4e 20 41 4e 59 | 20 54 48 45 4f 52 59 20 |D ON ANY| THEORY |
|00002690| 4f 46 20 4c 49 41 42 49 | 4c 49 54 59 2c 20 57 48 |OF LIABI|LITY, WH|
|000026a0| 45 54 48 45 52 20 49 4e | 20 43 4f 4e 54 52 41 43 |ETHER IN| CONTRAC|
|000026b0| 54 2c 20 53 54 52 49 43 | 54 0a 20 2a 20 4c 49 41 |T, STRIC|T. * LIA|
|000026c0| 42 49 4c 49 54 59 2c 20 | 4f 52 20 54 4f 52 54 20 |BILITY, |OR TORT |
|000026d0| 28 49 4e 43 4c 55 44 49 | 4e 47 20 4e 45 47 4c 49 |(INCLUDI|NG NEGLI|
|000026e0| 47 45 4e 43 45 20 4f 52 | 20 4f 54 48 45 52 57 49 |GENCE OR| OTHERWI|
|000026f0| 53 45 29 20 41 52 49 53 | 49 4e 47 20 49 4e 20 41 |SE) ARIS|ING IN A|
|00002700| 4e 59 20 57 41 59 0a 20 | 2a 20 4f 55 54 20 4f 46 |NY WAY. |* OUT OF|
|00002710| 20 54 48 45 20 55 53 45 | 20 4f 46 20 54 48 49 53 | THE USE| OF THIS|
|00002720| 20 53 4f 46 54 57 41 52 | 45 2c 20 45 56 45 4e 20 | SOFTWAR|E, EVEN |
|00002730| 49 46 20 41 44 56 49 53 | 45 44 20 4f 46 20 54 48 |IF ADVIS|ED OF TH|
|00002740| 45 20 50 4f 53 53 49 42 | 49 4c 49 54 59 20 4f 46 |E POSSIB|ILITY OF|
|00002750| 0a 20 2a 20 53 55 43 48 | 20 44 41 4d 41 47 45 2e |. * SUCH| DAMAGE.|
|00002760| 0a 20 2a 0a 20 2a 09 40 | 28 23 29 65 78 74 65 72 |. *. *.@|(#)exter|
|00002770| 6e 2e 68 09 38 2e 32 20 | 28 42 65 72 6b 65 6c 65 |n.h.8.2 |(Berkele|
|00002780| 79 29 20 34 2f 34 2f 39 | 34 0a 20 2a 2f 0a 0a 76 |y) 4/4/9|4. */..v|
|00002790| 6f 69 64 09 62 6c 6b 66 | 72 65 65 20 5f 5f 50 28 |oid.blkf|ree __P(|
|000027a0| 28 63 68 61 72 20 2a 2a | 29 29 3b 0a 63 68 61 72 |(char **|));.char|
|000027b0| 20 20 2a 2a 63 6f 70 79 | 62 6c 6b 20 5f 5f 50 28 | **copy|blk __P(|
|000027c0| 28 63 68 61 72 20 2a 2a | 29 29 3b 0a 76 6f 69 64 |(char **|));.void|
|000027d0| 09 63 77 64 20 5f 5f 50 | 28 28 63 68 61 72 20 2a |.cwd __P|((char *|
|000027e0| 29 29 3b 0a 76 6f 69 64 | 09 64 65 6c 65 74 65 20 |));.void|.delete |
|000027f0| 5f 5f 50 28 28 63 68 61 | 72 20 2a 29 29 3b 0a 76 |__P((cha|r *));.v|
|00002800| 6f 69 64 09 64 6f 6c 6f | 67 6f 75 74 20 5f 5f 50 |oid.dolo|gout __P|
|00002810| 28 28 69 6e 74 29 29 3b | 0a 76 6f 69 64 09 66 61 |((int));|.void.fa|
|00002820| 74 61 6c 20 5f 5f 50 28 | 28 63 68 61 72 20 2a 29 |tal __P(|(char *)|
|00002830| 29 3b 0a 69 6e 74 09 66 | 74 70 64 5f 70 63 6c 6f |);.int.f|tpd_pclo|
|00002840| 73 65 20 5f 5f 50 28 28 | 46 49 4c 45 20 2a 29 29 |se __P((|FILE *))|
|00002850| 3b 0a 46 49 4c 45 20 20 | 20 2a 66 74 70 64 5f 70 |;.FILE | *ftpd_p|
|00002860| 6f 70 65 6e 20 5f 5f 50 | 28 28 63 68 61 72 20 2a |open __P|((char *|
|00002870| 2c 20 63 68 61 72 20 2a | 29 29 3b 0a 63 68 61 72 |, char *|));.char|
|00002880| 20 20 20 2a 67 65 74 6c | 69 6e 65 20 5f 5f 50 28 | *getl|ine __P(|
|00002890| 28 63 68 61 72 20 2a 2c | 20 69 6e 74 2c 20 46 49 |(char *,| int, FI|
|000028a0| 4c 45 20 2a 29 29 3b 0a | 76 6f 69 64 09 6c 6f 67 |LE *));.|void.log|
|000028b0| 77 74 6d 70 20 5f 5f 50 | 28 28 63 68 61 72 20 2a |wtmp __P|((char *|
|000028c0| 2c 20 63 68 61 72 20 2a | 2c 20 63 68 61 72 20 2a |, char *|, char *|
|000028d0| 29 29 3b 0a 76 6f 69 64 | 09 6c 72 65 70 6c 79 20 |));.void|.lreply |
|000028e0| 5f 5f 50 28 28 69 6e 74 | 2c 20 63 6f 6e 73 74 20 |__P((int|, const |
|000028f0| 63 68 61 72 20 2a 2c 20 | 2e 2e 2e 29 29 3b 0a 76 |char *, |...));.v|
|00002900| 6f 69 64 09 6d 61 6b 65 | 64 69 72 20 5f 5f 50 28 |oid.make|dir __P(|
|00002910| 28 63 68 61 72 20 2a 29 | 29 3b 0a 76 6f 69 64 09 |(char *)|);.void.|
|00002920| 6e 61 63 6b 20 5f 5f 50 | 28 28 63 68 61 72 20 2a |nack __P|((char *|
|00002930| 29 29 3b 0a 76 6f 69 64 | 09 70 61 73 73 20 5f 5f |));.void|.pass __|
|00002940| 50 28 28 63 68 61 72 20 | 2a 29 29 3b 0a 76 6f 69 |P((char |*));.voi|
|00002950| 64 09 70 61 73 73 69 76 | 65 20 5f 5f 50 28 28 76 |d.passiv|e __P((v|
|00002960| 6f 69 64 29 29 3b 0a 76 | 6f 69 64 09 70 65 72 72 |oid));.v|oid.perr|
|00002970| 6f 72 5f 72 65 70 6c 79 | 20 5f 5f 50 28 28 69 6e |or_reply| __P((in|
|00002980| 74 2c 20 63 68 61 72 20 | 2a 29 29 3b 0a 76 6f 69 |t, char |*));.voi|
|00002990| 64 09 70 77 64 20 5f 5f | 50 28 28 76 6f 69 64 29 |d.pwd __|P((void)|
|000029a0| 29 3b 0a 76 6f 69 64 09 | 72 65 6d 6f 76 65 64 69 |);.void.|removedi|
|000029b0| 72 20 5f 5f 50 28 28 63 | 68 61 72 20 2a 29 29 3b |r __P((c|har *));|
|000029c0| 0a 76 6f 69 64 09 72 65 | 6e 61 6d 65 63 6d 64 20 |.void.re|namecmd |
|000029d0| 5f 5f 50 28 28 63 68 61 | 72 20 2a 2c 20 63 68 61 |__P((cha|r *, cha|
|000029e0| 72 20 2a 29 29 3b 0a 63 | 68 61 72 20 20 20 2a 72 |r *));.c|har *r|
|000029f0| 65 6e 61 6d 65 66 72 6f | 6d 20 5f 5f 50 28 28 63 |enamefro|m __P((c|
|00002a00| 68 61 72 20 2a 29 29 3b | 0a 76 6f 69 64 09 72 65 |har *));|.void.re|
|00002a10| 70 6c 79 20 5f 5f 50 28 | 28 69 6e 74 2c 20 63 6f |ply __P(|(int, co|
|00002a20| 6e 73 74 20 63 68 61 72 | 20 2a 2c 20 2e 2e 2e 29 |nst char| *, ...)|
|00002a30| 29 3b 0a 76 6f 69 64 09 | 72 65 74 72 69 65 76 65 |);.void.|retrieve|
|00002a40| 20 5f 5f 50 28 28 63 68 | 61 72 20 2a 2c 20 63 68 | __P((ch|ar *, ch|
|00002a50| 61 72 20 2a 29 29 3b 0a | 76 6f 69 64 09 73 65 6e |ar *));.|void.sen|
|00002a60| 64 5f 66 69 6c 65 5f 6c | 69 73 74 20 5f 5f 50 28 |d_file_l|ist __P(|
|00002a70| 28 63 68 61 72 20 2a 29 | 29 3b 0a 76 6f 69 64 09 |(char *)|);.void.|
|00002a80| 73 65 74 70 72 6f 63 74 | 69 74 6c 65 20 5f 5f 50 |setproct|itle __P|
|00002a90| 28 28 63 6f 6e 73 74 20 | 63 68 61 72 20 2a 2c 20 |((const |char *, |
|00002aa0| 2e 2e 2e 29 29 3b 0a 76 | 6f 69 64 09 73 74 61 74 |...));.v|oid.stat|
|00002ab0| 63 6d 64 20 5f 5f 50 28 | 28 76 6f 69 64 29 29 3b |cmd __P(|(void));|
|00002ac0| 0a 76 6f 69 64 09 73 74 | 61 74 66 69 6c 65 63 6d |.void.st|atfilecm|
|00002ad0| 64 20 5f 5f 50 28 28 63 | 68 61 72 20 2a 29 29 3b |d __P((c|har *));|
|00002ae0| 0a 76 6f 69 64 09 73 74 | 6f 72 65 20 5f 5f 50 28 |.void.st|ore __P(|
|00002af0| 28 63 68 61 72 20 2a 2c | 20 63 68 61 72 20 2a 2c |(char *,| char *,|
|00002b00| 20 69 6e 74 29 29 3b 0a | 76 6f 69 64 09 75 70 70 | int));.|void.upp|
|00002b10| 65 72 20 5f 5f 50 28 28 | 63 68 61 72 20 2a 29 29 |er __P((|char *))|
|00002b20| 3b 0a 76 6f 69 64 09 75 | 73 65 72 20 5f 5f 50 28 |;.void.u|ser __P(|
|00002b30| 28 63 68 61 72 20 2a 29 | 29 3b 0a 76 6f 69 64 09 |(char *)|);.void.|
|00002b40| 79 79 65 72 72 6f 72 20 | 5f 5f 50 28 28 63 68 61 |yyerror |__P((cha|
|00002b50| 72 20 2a 29 29 3b 0a 00 | 00 00 00 00 00 00 00 00 |r *));..|........|
|00002b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c00| 62 73 64 2e 66 74 70 64 | 2f 66 74 70 63 6d 64 2e |bsd.ftpd|/ftpcmd.|
|00002c10| 79 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |y.......|........|
|00002c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c60| 00 00 00 00 31 30 30 36 | 30 30 20 00 20 20 20 37 |....1006|00 . 7|
|00002c70| 36 34 20 00 20 20 20 31 | 34 34 20 00 20 20 20 20 |64 . 1|44 . |
|00002c80| 20 20 36 30 37 33 33 20 | 20 36 30 32 34 32 33 31 | 60733 | 6024231|
|00002c90| 36 33 35 20 20 31 33 31 | 36 33 00 20 30 00 00 00 |635 131|63. 0...|
|00002ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d00| 00 75 73 74 61 72 20 20 | 00 64 6f 77 6e 73 6a 00 |.ustar |.downsj.|
|00002d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d20| 00 00 00 00 00 00 00 00 | 00 75 73 65 72 73 00 00 |........|.users..|
|00002d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e00| 2f 2a 09 24 4e 65 74 42 | 53 44 3a 20 66 74 70 63 |/*.$NetB|SD: ftpc|
|00002e10| 6d 64 2e 79 2c 76 20 31 | 2e 36 20 31 39 39 35 2f |md.y,v 1|.6 1995/|
|00002e20| 30 36 2f 30 33 20 32 32 | 3a 34 36 3a 34 35 20 6d |06/03 22|:46:45 m|
|00002e30| 79 63 72 6f 66 74 20 45 | 78 70 20 24 09 2a 2f 0a |ycroft E|xp $.*/.|
|00002e40| 0a 2f 2a 0a 20 2a 20 43 | 6f 70 79 72 69 67 68 74 |./*. * C|opyright|
|00002e50| 20 28 63 29 20 31 39 38 | 35 2c 20 31 39 38 38 2c | (c) 198|5, 1988,|
|00002e60| 20 31 39 39 33 2c 20 31 | 39 39 34 0a 20 2a 09 54 | 1993, 1|994. *.T|
|00002e70| 68 65 20 52 65 67 65 6e | 74 73 20 6f 66 20 74 68 |he Regen|ts of th|
|00002e80| 65 20 55 6e 69 76 65 72 | 73 69 74 79 20 6f 66 20 |e Univer|sity of |
|00002e90| 43 61 6c 69 66 6f 72 6e | 69 61 2e 20 20 41 6c 6c |Californ|ia. All|
|00002ea0| 20 72 69 67 68 74 73 20 | 72 65 73 65 72 76 65 64 | rights |reserved|
|00002eb0| 2e 0a 20 2a 0a 20 2a 20 | 52 65 64 69 73 74 72 69 |.. *. * |Redistri|
|00002ec0| 62 75 74 69 6f 6e 20 61 | 6e 64 20 75 73 65 20 69 |bution a|nd use i|
|00002ed0| 6e 20 73 6f 75 72 63 65 | 20 61 6e 64 20 62 69 6e |n source| and bin|
|00002ee0| 61 72 79 20 66 6f 72 6d | 73 2c 20 77 69 74 68 20 |ary form|s, with |
|00002ef0| 6f 72 20 77 69 74 68 6f | 75 74 0a 20 2a 20 6d 6f |or witho|ut. * mo|
|00002f00| 64 69 66 69 63 61 74 69 | 6f 6e 2c 20 61 72 65 20 |dificati|on, are |
|00002f10| 70 65 72 6d 69 74 74 65 | 64 20 70 72 6f 76 69 64 |permitte|d provid|
|00002f20| 65 64 20 74 68 61 74 20 | 74 68 65 20 66 6f 6c 6c |ed that |the foll|
|00002f30| 6f 77 69 6e 67 20 63 6f | 6e 64 69 74 69 6f 6e 73 |owing co|nditions|
|00002f40| 0a 20 2a 20 61 72 65 20 | 6d 65 74 3a 0a 20 2a 20 |. * are |met:. * |
|00002f50| 31 2e 20 52 65 64 69 73 | 74 72 69 62 75 74 69 6f |1. Redis|tributio|
|00002f60| 6e 73 20 6f 66 20 73 6f | 75 72 63 65 20 63 6f 64 |ns of so|urce cod|
|00002f70| 65 20 6d 75 73 74 20 72 | 65 74 61 69 6e 20 74 68 |e must r|etain th|
|00002f80| 65 20 61 62 6f 76 65 20 | 63 6f 70 79 72 69 67 68 |e above |copyrigh|
|00002f90| 74 0a 20 2a 20 20 20 20 | 6e 6f 74 69 63 65 2c 20 |t. * |notice, |
|00002fa0| 74 68 69 73 20 6c 69 73 | 74 20 6f 66 20 63 6f 6e |this lis|t of con|
|00002fb0| 64 69 74 69 6f 6e 73 20 | 61 6e 64 20 74 68 65 20 |ditions |and the |
|00002fc0| 66 6f 6c 6c 6f 77 69 6e | 67 20 64 69 73 63 6c 61 |followin|g discla|
|00002fd0| 69 6d 65 72 2e 0a 20 2a | 20 32 2e 20 52 65 64 69 |imer.. *| 2. Redi|
|00002fe0| 73 74 72 69 62 75 74 69 | 6f 6e 73 20 69 6e 20 62 |stributi|ons in b|
|00002ff0| 69 6e 61 72 79 20 66 6f | 72 6d 20 6d 75 73 74 20 |inary fo|rm must |
|00003000| 72 65 70 72 6f 64 75 63 | 65 20 74 68 65 20 61 62 |reproduc|e the ab|
|00003010| 6f 76 65 20 63 6f 70 79 | 72 69 67 68 74 0a 20 2a |ove copy|right. *|
|00003020| 20 20 20 20 6e 6f 74 69 | 63 65 2c 20 74 68 69 73 | noti|ce, this|
|00003030| 20 6c 69 73 74 20 6f 66 | 20 63 6f 6e 64 69 74 69 | list of| conditi|
|00003040| 6f 6e 73 20 61 6e 64 20 | 74 68 65 20 66 6f 6c 6c |ons and |the foll|
|00003050| 6f 77 69 6e 67 20 64 69 | 73 63 6c 61 69 6d 65 72 |owing di|sclaimer|
|00003060| 20 69 6e 20 74 68 65 0a | 20 2a 20 20 20 20 64 6f | in the.| * do|
|00003070| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 61 6e 64 2f |cumentat|ion and/|
|00003080| 6f 72 20 6f 74 68 65 72 | 20 6d 61 74 65 72 69 61 |or other| materia|
|00003090| 6c 73 20 70 72 6f 76 69 | 64 65 64 20 77 69 74 68 |ls provi|ded with|
|000030a0| 20 74 68 65 20 64 69 73 | 74 72 69 62 75 74 69 6f | the dis|tributio|
|000030b0| 6e 2e 0a 20 2a 20 33 2e | 20 41 6c 6c 20 61 64 76 |n.. * 3.| All adv|
|000030c0| 65 72 74 69 73 69 6e 67 | 20 6d 61 74 65 72 69 61 |ertising| materia|
|000030d0| 6c 73 20 6d 65 6e 74 69 | 6f 6e 69 6e 67 20 66 65 |ls menti|oning fe|
|000030e0| 61 74 75 72 65 73 20 6f | 72 20 75 73 65 20 6f 66 |atures o|r use of|
|000030f0| 20 74 68 69 73 20 73 6f | 66 74 77 61 72 65 0a 20 | this so|ftware. |
|00003100| 2a 20 20 20 20 6d 75 73 | 74 20 64 69 73 70 6c 61 |* mus|t displa|
|00003110| 79 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |y the fo|llowing |
|00003120| 61 63 6b 6e 6f 77 6c 65 | 64 67 65 6d 65 6e 74 3a |acknowle|dgement:|
|00003130| 0a 20 2a 09 54 68 69 73 | 20 70 72 6f 64 75 63 74 |. *.This| product|
|00003140| 20 69 6e 63 6c 75 64 65 | 73 20 73 6f 66 74 77 61 | include|s softwa|
|00003150| 72 65 20 64 65 76 65 6c | 6f 70 65 64 20 62 79 20 |re devel|oped by |
|00003160| 74 68 65 20 55 6e 69 76 | 65 72 73 69 74 79 20 6f |the Univ|ersity o|
|00003170| 66 0a 20 2a 09 43 61 6c | 69 66 6f 72 6e 69 61 2c |f. *.Cal|ifornia,|
|00003180| 20 42 65 72 6b 65 6c 65 | 79 20 61 6e 64 20 69 74 | Berkele|y and it|
|00003190| 73 20 63 6f 6e 74 72 69 | 62 75 74 6f 72 73 2e 0a |s contri|butors..|
|000031a0| 20 2a 20 34 2e 20 4e 65 | 69 74 68 65 72 20 74 68 | * 4. Ne|ither th|
|000031b0| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 55 6e |e name o|f the Un|
|000031c0| 69 76 65 72 73 69 74 79 | 20 6e 6f 72 20 74 68 65 |iversity| nor the|
|000031d0| 20 6e 61 6d 65 73 20 6f | 66 20 69 74 73 20 63 6f | names o|f its co|
|000031e0| 6e 74 72 69 62 75 74 6f | 72 73 0a 20 2a 20 20 20 |ntributo|rs. * |
|000031f0| 20 6d 61 79 20 62 65 20 | 75 73 65 64 20 74 6f 20 | may be |used to |
|00003200| 65 6e 64 6f 72 73 65 20 | 6f 72 20 70 72 6f 6d 6f |endorse |or promo|
|00003210| 74 65 20 70 72 6f 64 75 | 63 74 73 20 64 65 72 69 |te produ|cts deri|
|00003220| 76 65 64 20 66 72 6f 6d | 20 74 68 69 73 20 73 6f |ved from| this so|
|00003230| 66 74 77 61 72 65 0a 20 | 2a 20 20 20 20 77 69 74 |ftware. |* wit|
|00003240| 68 6f 75 74 20 73 70 65 | 63 69 66 69 63 20 70 72 |hout spe|cific pr|
|00003250| 69 6f 72 20 77 72 69 74 | 74 65 6e 20 70 65 72 6d |ior writ|ten perm|
|00003260| 69 73 73 69 6f 6e 2e 0a | 20 2a 0a 20 2a 20 54 48 |ission..| *. * TH|
|00003270| 49 53 20 53 4f 46 54 57 | 41 52 45 20 49 53 20 50 |IS SOFTW|ARE IS P|
|00003280| 52 4f 56 49 44 45 44 20 | 42 59 20 54 48 45 20 52 |ROVIDED |BY THE R|
|00003290| 45 47 45 4e 54 53 20 41 | 4e 44 20 43 4f 4e 54 52 |EGENTS A|ND CONTR|
|000032a0| 49 42 55 54 4f 52 53 20 | 60 60 41 53 20 49 53 27 |IBUTORS |``AS IS'|
|000032b0| 27 20 41 4e 44 0a 20 2a | 20 41 4e 59 20 45 58 50 |' AND. *| ANY EXP|
|000032c0| 52 45 53 53 20 4f 52 20 | 49 4d 50 4c 49 45 44 20 |RESS OR |IMPLIED |
|000032d0| 57 41 52 52 41 4e 54 49 | 45 53 2c 20 49 4e 43 4c |WARRANTI|ES, INCL|
|000032e0| 55 44 49 4e 47 2c 20 42 | 55 54 20 4e 4f 54 20 4c |UDING, B|UT NOT L|
|000032f0| 49 4d 49 54 45 44 20 54 | 4f 2c 20 54 48 45 0a 20 |IMITED T|O, THE. |
|00003300| 2a 20 49 4d 50 4c 49 45 | 44 20 57 41 52 52 41 4e |* IMPLIE|D WARRAN|
|00003310| 54 49 45 53 20 4f 46 20 | 4d 45 52 43 48 41 4e 54 |TIES OF |MERCHANT|
|00003320| 41 42 49 4c 49 54 59 20 | 41 4e 44 20 46 49 54 4e |ABILITY |AND FITN|
|00003330| 45 53 53 20 46 4f 52 20 | 41 20 50 41 52 54 49 43 |ESS FOR |A PARTIC|
|00003340| 55 4c 41 52 20 50 55 52 | 50 4f 53 45 0a 20 2a 20 |ULAR PUR|POSE. * |
|00003350| 41 52 45 20 44 49 53 43 | 4c 41 49 4d 45 44 2e 20 |ARE DISC|LAIMED. |
|00003360| 20 49 4e 20 4e 4f 20 45 | 56 45 4e 54 20 53 48 41 | IN NO E|VENT SHA|
|00003370| 4c 4c 20 54 48 45 20 52 | 45 47 45 4e 54 53 20 4f |LL THE R|EGENTS O|
|00003380| 52 20 43 4f 4e 54 52 49 | 42 55 54 4f 52 53 20 42 |R CONTRI|BUTORS B|
|00003390| 45 20 4c 49 41 42 4c 45 | 0a 20 2a 20 46 4f 52 20 |E LIABLE|. * FOR |
|000033a0| 41 4e 59 20 44 49 52 45 | 43 54 2c 20 49 4e 44 49 |ANY DIRE|CT, INDI|
|000033b0| 52 45 43 54 2c 20 49 4e | 43 49 44 45 4e 54 41 4c |RECT, IN|CIDENTAL|
|000033c0| 2c 20 53 50 45 43 49 41 | 4c 2c 20 45 58 45 4d 50 |, SPECIA|L, EXEMP|
|000033d0| 4c 41 52 59 2c 20 4f 52 | 20 43 4f 4e 53 45 51 55 |LARY, OR| CONSEQU|
|000033e0| 45 4e 54 49 41 4c 0a 20 | 2a 20 44 41 4d 41 47 45 |ENTIAL. |* DAMAGE|
|000033f0| 53 20 28 49 4e 43 4c 55 | 44 49 4e 47 2c 20 42 55 |S (INCLU|DING, BU|
|00003400| 54 20 4e 4f 54 20 4c 49 | 4d 49 54 45 44 20 54 4f |T NOT LI|MITED TO|
|00003410| 2c 20 50 52 4f 43 55 52 | 45 4d 45 4e 54 20 4f 46 |, PROCUR|EMENT OF|
|00003420| 20 53 55 42 53 54 49 54 | 55 54 45 20 47 4f 4f 44 | SUBSTIT|UTE GOOD|
|00003430| 53 0a 20 2a 20 4f 52 20 | 53 45 52 56 49 43 45 53 |S. * OR |SERVICES|
|00003440| 3b 20 4c 4f 53 53 20 4f | 46 20 55 53 45 2c 20 44 |; LOSS O|F USE, D|
|00003450| 41 54 41 2c 20 4f 52 20 | 50 52 4f 46 49 54 53 3b |ATA, OR |PROFITS;|
|00003460| 20 4f 52 20 42 55 53 49 | 4e 45 53 53 20 49 4e 54 | OR BUSI|NESS INT|
|00003470| 45 52 52 55 50 54 49 4f | 4e 29 0a 20 2a 20 48 4f |ERRUPTIO|N). * HO|
|00003480| 57 45 56 45 52 20 43 41 | 55 53 45 44 20 41 4e 44 |WEVER CA|USED AND|
|00003490| 20 4f 4e 20 41 4e 59 20 | 54 48 45 4f 52 59 20 4f | ON ANY |THEORY O|
|000034a0| 46 20 4c 49 41 42 49 4c | 49 54 59 2c 20 57 48 45 |F LIABIL|ITY, WHE|
|000034b0| 54 48 45 52 20 49 4e 20 | 43 4f 4e 54 52 41 43 54 |THER IN |CONTRACT|
|000034c0| 2c 20 53 54 52 49 43 54 | 0a 20 2a 20 4c 49 41 42 |, STRICT|. * LIAB|
|000034d0| 49 4c 49 54 59 2c 20 4f | 52 20 54 4f 52 54 20 28 |ILITY, O|R TORT (|
|000034e0| 49 4e 43 4c 55 44 49 4e | 47 20 4e 45 47 4c 49 47 |INCLUDIN|G NEGLIG|
|000034f0| 45 4e 43 45 20 4f 52 20 | 4f 54 48 45 52 57 49 53 |ENCE OR |OTHERWIS|
|00003500| 45 29 20 41 52 49 53 49 | 4e 47 20 49 4e 20 41 4e |E) ARISI|NG IN AN|
|00003510| 59 20 57 41 59 0a 20 2a | 20 4f 55 54 20 4f 46 20 |Y WAY. *| OUT OF |
|00003520| 54 48 45 20 55 53 45 20 | 4f 46 20 54 48 49 53 20 |THE USE |OF THIS |
|00003530| 53 4f 46 54 57 41 52 45 | 2c 20 45 56 45 4e 20 49 |SOFTWARE|, EVEN I|
|00003540| 46 20 41 44 56 49 53 45 | 44 20 4f 46 20 54 48 45 |F ADVISE|D OF THE|
|00003550| 20 50 4f 53 53 49 42 49 | 4c 49 54 59 20 4f 46 0a | POSSIBI|LITY OF.|
|00003560| 20 2a 20 53 55 43 48 20 | 44 41 4d 41 47 45 2e 0a | * SUCH |DAMAGE..|
|00003570| 20 2a 0a 20 2a 09 40 28 | 23 29 66 74 70 63 6d 64 | *. *.@(|#)ftpcmd|
|00003580| 2e 79 09 38 2e 33 20 28 | 42 65 72 6b 65 6c 65 79 |.y.8.3 (|Berkeley|
|00003590| 29 20 34 2f 36 2f 39 34 | 0a 20 2a 2f 0a 0a 2f 2a |) 4/6/94|. */../*|
|000035a0| 0a 20 2a 20 47 72 61 6d | 6d 61 72 20 66 6f 72 20 |. * Gram|mar for |
|000035b0| 46 54 50 20 63 6f 6d 6d | 61 6e 64 73 2e 0a 20 2a |FTP comm|ands.. *|
|000035c0| 20 53 65 65 20 52 46 43 | 20 39 35 39 2e 0a 20 2a | See RFC| 959.. *|
|000035d0| 2f 0a 0a 25 7b 0a 0a 23 | 69 66 6e 64 65 66 20 6c |/..%{..#|ifndef l|
|000035e0| 69 6e 74 0a 23 69 66 20 | 30 0a 73 74 61 74 69 63 |int.#if |0.static|
|000035f0| 20 63 68 61 72 20 73 63 | 63 73 69 64 5b 5d 20 3d | char sc|csid[] =|
|00003600| 20 22 40 28 23 29 66 74 | 70 63 6d 64 2e 79 09 38 | "@(#)ft|pcmd.y.8|
|00003610| 2e 33 20 28 42 65 72 6b | 65 6c 65 79 29 20 34 2f |.3 (Berk|eley) 4/|
|00003620| 36 2f 39 34 22 3b 0a 23 | 65 6c 73 65 0a 73 74 61 |6/94";.#|else.sta|
|00003630| 74 69 63 20 63 68 61 72 | 20 72 63 73 69 64 5b 5d |tic char| rcsid[]|
|00003640| 20 3d 20 22 24 4e 65 74 | 42 53 44 3a 20 66 74 70 | = "$Net|BSD: ftp|
|00003650| 63 6d 64 2e 79 2c 76 20 | 31 2e 36 20 31 39 39 35 |cmd.y,v |1.6 1995|
|00003660| 2f 30 36 2f 30 33 20 32 | 32 3a 34 36 3a 34 35 20 |/06/03 2|2:46:45 |
|00003670| 6d 79 63 72 6f 66 74 20 | 45 78 70 20 24 22 3b 0a |mycroft |Exp $";.|
|00003680| 23 65 6e 64 69 66 0a 23 | 65 6e 64 69 66 20 2f 2a |#endif.#|endif /*|
|00003690| 20 6e 6f 74 20 6c 69 6e | 74 20 2a 2f 0a 0a 23 69 | not lin|t */..#i|
|000036a0| 6e 63 6c 75 64 65 20 22 | 67 6c 6f 62 2e 68 22 0a |nclude "|glob.h".|
|000036b0| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 73 79 73 2f 70 |.#includ|e <sys/p|
|000036c0| 61 72 61 6d 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |aram.h>.|#include|
|000036d0| 20 3c 73 79 73 2f 73 6f | 63 6b 65 74 2e 68 3e 0a | <sys/so|cket.h>.|
|000036e0| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 73 74 |#include| <sys/st|
|000036f0| 61 74 2e 68 3e 0a 0a 23 | 69 6e 63 6c 75 64 65 20 |at.h>..#|include |
|00003700| 3c 6e 65 74 69 6e 65 74 | 2f 69 6e 2e 68 3e 0a 23 |<netinet|/in.h>.#|
|00003710| 69 6e 63 6c 75 64 65 20 | 3c 61 72 70 61 2f 66 74 |include |<arpa/ft|
|00003720| 70 2e 68 3e 0a 0a 23 69 | 6e 63 6c 75 64 65 20 3c |p.h>..#i|nclude <|
|00003730| 63 74 79 70 65 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |ctype.h>|.#includ|
|00003740| 65 20 3c 65 72 72 6e 6f | 2e 68 3e 0a 23 69 6e 63 |e <errno|.h>.#inc|
|00003750| 6c 75 64 65 20 3c 70 77 | 64 2e 68 3e 0a 23 69 6e |lude <pw|d.h>.#in|
|00003760| 63 6c 75 64 65 20 3c 73 | 65 74 6a 6d 70 2e 68 3e |clude <s|etjmp.h>|
|00003770| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 73 69 67 6e 61 |.#includ|e <signa|
|00003780| 6c 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 73 |l.h>.#in|clude <s|
|00003790| 74 64 69 6f 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |tdio.h>.|#include|
|000037a0| 20 3c 73 74 64 6c 69 62 | 2e 68 3e 0a 23 69 6e 63 | <stdlib|.h>.#inc|
|000037b0| 6c 75 64 65 20 3c 73 74 | 72 69 6e 67 2e 68 3e 0a |lude <st|ring.h>.|
|000037c0| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 6c 6f 67 |#include| <syslog|
|000037d0| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 74 69 |.h>.#inc|lude <ti|
|000037e0| 6d 65 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |me.h>.#i|nclude <|
|000037f0| 75 6e 69 73 74 64 2e 68 | 3e 0a 0a 23 69 6e 63 6c |unistd.h|>..#incl|
|00003800| 75 64 65 20 22 65 78 74 | 65 72 6e 2e 68 22 0a 0a |ude "ext|ern.h"..|
|00003810| 65 78 74 65 72 6e 09 73 | 74 72 75 63 74 20 73 6f |extern.s|truct so|
|00003820| 63 6b 61 64 64 72 5f 69 | 6e 20 64 61 74 61 5f 64 |ckaddr_i|n data_d|
|00003830| 65 73 74 3b 0a 65 78 74 | 65 72 6e 09 69 6e 74 20 |est;.ext|ern.int |
|00003840| 6c 6f 67 67 65 64 5f 69 | 6e 3b 0a 65 78 74 65 72 |logged_i|n;.exter|
|00003850| 6e 09 73 74 72 75 63 74 | 20 70 61 73 73 77 64 20 |n.struct| passwd |
|00003860| 2a 70 77 3b 0a 65 78 74 | 65 72 6e 09 69 6e 74 20 |*pw;.ext|ern.int |
|00003870| 67 75 65 73 74 3b 0a 65 | 78 74 65 72 6e 09 69 6e |guest;.e|xtern.in|
|00003880| 74 20 6c 6f 67 67 69 6e | 67 3b 0a 65 78 74 65 72 |t loggin|g;.exter|
|00003890| 6e 09 69 6e 74 20 74 79 | 70 65 3b 0a 65 78 74 65 |n.int ty|pe;.exte|
|000038a0| 72 6e 09 69 6e 74 20 66 | 6f 72 6d 3b 0a 65 78 74 |rn.int f|orm;.ext|
|000038b0| 65 72 6e 09 69 6e 74 20 | 64 65 62 75 67 3b 0a 65 |ern.int |debug;.e|
|000038c0| 78 74 65 72 6e 09 69 6e | 74 20 74 69 6d 65 6f 75 |xtern.in|t timeou|
|000038d0| 74 3b 0a 65 78 74 65 72 | 6e 09 69 6e 74 20 6d 61 |t;.exter|n.int ma|
|000038e0| 78 74 69 6d 65 6f 75 74 | 3b 0a 65 78 74 65 72 6e |xtimeout|;.extern|
|000038f0| 20 20 69 6e 74 20 70 64 | 61 74 61 3b 0a 65 78 74 | int pd|ata;.ext|
|00003900| 65 72 6e 09 63 68 61 72 | 20 68 6f 73 74 6e 61 6d |ern.char| hostnam|
|00003910| 65 5b 5d 2c 20 72 65 6d | 6f 74 65 68 6f 73 74 5b |e[], rem|otehost[|
|00003920| 5d 3b 0a 65 78 74 65 72 | 6e 09 63 68 61 72 20 70 |];.exter|n.char p|
|00003930| 72 6f 63 74 69 74 6c 65 | 5b 5d 3b 0a 65 78 74 65 |roctitle|[];.exte|
|00003940| 72 6e 09 69 6e 74 20 75 | 73 65 64 65 66 61 75 6c |rn.int u|sedefaul|
|00003950| 74 3b 0a 65 78 74 65 72 | 6e 20 20 69 6e 74 20 74 |t;.exter|n int t|
|00003960| 72 61 6e 73 66 6c 61 67 | 3b 0a 65 78 74 65 72 6e |ransflag|;.extern|
|00003970| 20 20 63 68 61 72 20 74 | 6d 70 6c 69 6e 65 5b 5d | char t|mpline[]|
|00003980| 3b 0a 0a 6f 66 66 5f 74 | 09 72 65 73 74 61 72 74 |;..off_t|.restart|
|00003990| 5f 70 6f 69 6e 74 3b 0a | 0a 73 74 61 74 69 63 09 |_point;.|.static.|
|000039a0| 69 6e 74 20 63 6d 64 5f | 74 79 70 65 3b 0a 73 74 |int cmd_|type;.st|
|000039b0| 61 74 69 63 09 69 6e 74 | 20 63 6d 64 5f 66 6f 72 |atic.int| cmd_for|
|000039c0| 6d 3b 0a 73 74 61 74 69 | 63 09 69 6e 74 20 63 6d |m;.stati|c.int cm|
|000039d0| 64 5f 62 79 74 65 73 7a | 3b 0a 63 68 61 72 09 63 |d_bytesz|;.char.c|
|000039e0| 62 75 66 5b 35 31 32 5d | 3b 0a 63 68 61 72 09 2a |buf[512]|;.char.*|
|000039f0| 66 72 6f 6d 6e 61 6d 65 | 3b 0a 0a 25 7d 0a 0a 25 |fromname|;..%}..%|
|00003a00| 75 6e 69 6f 6e 20 7b 0a | 09 69 6e 74 09 69 3b 0a |union {.|.int.i;.|
|00003a10| 09 63 68 61 72 20 20 20 | 2a 73 3b 0a 7d 0a 0a 25 |.char |*s;.}..%|
|00003a20| 74 6f 6b 65 6e 0a 09 41 | 09 42 09 43 09 45 09 46 |token..A|.B.C.E.F|
|00003a30| 09 49 0a 09 4c 09 4e 09 | 50 09 52 09 53 09 54 0a |.I..L.N.|P.R.S.T.|
|00003a40| 0a 09 53 50 09 43 52 4c | 46 09 43 4f 4d 4d 41 0a |..SP.CRL|F.COMMA.|
|00003a50| 0a 09 55 53 45 52 09 50 | 41 53 53 09 41 43 43 54 |..USER.P|ASS.ACCT|
|00003a60| 09 52 45 49 4e 09 51 55 | 49 54 09 50 4f 52 54 0a |.REIN.QU|IT.PORT.|
|00003a70| 09 50 41 53 56 09 54 59 | 50 45 09 53 54 52 55 09 |.PASV.TY|PE.STRU.|
|00003a80| 4d 4f 44 45 09 52 45 54 | 52 09 53 54 4f 52 0a 09 |MODE.RET|R.STOR..|
|00003a90| 41 50 50 45 09 4d 4c 46 | 4c 09 4d 41 49 4c 09 4d |APPE.MLF|L.MAIL.M|
|00003aa0| 53 4e 44 09 4d 53 4f 4d | 09 4d 53 41 4d 0a 09 4d |SND.MSOM|.MSAM..M|
|00003ab0| 52 53 51 09 4d 52 43 50 | 09 41 4c 4c 4f 09 52 45 |RSQ.MRCP|.ALLO.RE|
|00003ac0| 53 54 09 52 4e 46 52 09 | 52 4e 54 4f 0a 09 41 42 |ST.RNFR.|RNTO..AB|
|00003ad0| 4f 52 09 44 45 4c 45 09 | 43 57 44 09 4c 49 53 54 |OR.DELE.|CWD.LIST|
|00003ae0| 09 4e 4c 53 54 09 53 49 | 54 45 0a 09 53 54 41 54 |.NLST.SI|TE..STAT|
|00003af0| 09 48 45 4c 50 09 4e 4f | 4f 50 09 4d 4b 44 09 52 |.HELP.NO|OP.MKD.R|
|00003b00| 4d 44 09 50 57 44 0a 09 | 43 44 55 50 09 53 54 4f |MD.PWD..|CDUP.STO|
|00003b10| 55 09 53 4d 4e 54 09 53 | 59 53 54 09 53 49 5a 45 |U.SMNT.S|YST.SIZE|
|00003b20| 09 4d 44 54 4d 0a 0a 09 | 55 4d 41 53 4b 09 49 44 |.MDTM...|UMASK.ID|
|00003b30| 4c 45 09 43 48 4d 4f 44 | 0a 0a 09 4c 45 58 45 52 |LE.CHMOD|...LEXER|
|00003b40| 52 0a 0a 25 74 6f 6b 65 | 6e 09 3c 73 3e 20 53 54 |R..%toke|n.<s> ST|
|00003b50| 52 49 4e 47 0a 25 74 6f | 6b 65 6e 09 3c 69 3e 20 |RING.%to|ken.<i> |
|00003b60| 4e 55 4d 42 45 52 0a 0a | 25 74 79 70 65 09 3c 69 |NUMBER..|%type.<i|
|00003b70| 3e 20 63 68 65 63 6b 5f | 6c 6f 67 69 6e 20 6f 63 |> check_|login oc|
|00003b80| 74 61 6c 5f 6e 75 6d 62 | 65 72 20 62 79 74 65 5f |tal_numb|er byte_|
|00003b90| 73 69 7a 65 0a 25 74 79 | 70 65 09 3c 69 3e 20 73 |size.%ty|pe.<i> s|
|00003ba0| 74 72 75 63 74 5f 63 6f | 64 65 20 6d 6f 64 65 5f |truct_co|de mode_|
|00003bb0| 63 6f 64 65 20 74 79 70 | 65 5f 63 6f 64 65 20 66 |code typ|e_code f|
|00003bc0| 6f 72 6d 5f 63 6f 64 65 | 0a 25 74 79 70 65 09 3c |orm_code|.%type.<|
|00003bd0| 73 3e 20 70 61 74 68 73 | 74 72 69 6e 67 20 70 61 |s> paths|tring pa|
|00003be0| 74 68 6e 61 6d 65 20 70 | 61 73 73 77 6f 72 64 20 |thname p|assword |
|00003bf0| 75 73 65 72 6e 61 6d 65 | 0a 0a 25 73 74 61 72 74 |username|..%start|
|00003c00| 09 63 6d 64 5f 6c 69 73 | 74 0a 0a 25 25 0a 0a 63 |.cmd_lis|t..%%..c|
|00003c10| 6d 64 5f 6c 69 73 74 0a | 09 3a 20 2f 2a 20 65 6d |md_list.|.: /* em|
|00003c20| 70 74 79 20 2a 2f 0a 09 | 7c 20 63 6d 64 5f 6c 69 |pty */..|| cmd_li|
|00003c30| 73 74 20 63 6d 64 0a 09 | 09 7b 0a 09 09 09 66 72 |st cmd..|.{....fr|
|00003c40| 6f 6d 6e 61 6d 65 20 3d | 20 28 63 68 61 72 20 2a |omname =| (char *|
|00003c50| 29 20 30 3b 0a 09 09 09 | 72 65 73 74 61 72 74 5f |) 0;....|restart_|
|00003c60| 70 6f 69 6e 74 20 3d 20 | 28 6f 66 66 5f 74 29 20 |point = |(off_t) |
|00003c70| 30 3b 0a 09 09 7d 0a 09 | 7c 20 63 6d 64 5f 6c 69 |0;...}..|| cmd_li|
|00003c80| 73 74 20 72 63 6d 64 0a | 09 3b 0a 0a 63 6d 64 0a |st rcmd.|.;..cmd.|
|00003c90| 09 3a 20 55 53 45 52 20 | 53 50 20 75 73 65 72 6e |.: USER |SP usern|
|00003ca0| 61 6d 65 20 43 52 4c 46 | 0a 09 09 7b 0a 09 09 09 |ame CRLF|...{....|
|00003cb0| 75 73 65 72 28 24 33 29 | 3b 0a 09 09 09 66 72 65 |user($3)|;....fre|
|00003cc0| 65 28 24 33 29 3b 0a 09 | 09 7d 0a 09 7c 20 50 41 |e($3);..|.}..| PA|
|00003cd0| 53 53 20 53 50 20 70 61 | 73 73 77 6f 72 64 20 43 |SS SP pa|ssword C|
|00003ce0| 52 4c 46 0a 09 09 7b 0a | 09 09 09 70 61 73 73 28 |RLF...{.|...pass(|
|00003cf0| 24 33 29 3b 0a 09 09 09 | 66 72 65 65 28 24 33 29 |$3);....|free($3)|
|00003d00| 3b 0a 09 09 7d 0a 09 7c | 20 50 4f 52 54 20 53 50 |;...}..|| PORT SP|
|00003d10| 20 68 6f 73 74 5f 70 6f | 72 74 20 43 52 4c 46 0a | host_po|rt CRLF.|
|00003d20| 09 09 7b 0a 09 09 09 75 | 73 65 64 65 66 61 75 6c |..{....u|sedefaul|
|00003d30| 74 20 3d 20 30 3b 0a 09 | 09 09 69 66 20 28 70 64 |t = 0;..|..if (pd|
|00003d40| 61 74 61 20 3e 3d 20 30 | 29 20 7b 0a 09 09 09 09 |ata >= 0|) {.....|
|00003d50| 28 76 6f 69 64 29 20 63 | 6c 6f 73 65 28 70 64 61 |(void) c|lose(pda|
|00003d60| 74 61 29 3b 0a 09 09 09 | 09 70 64 61 74 61 20 3d |ta);....|.pdata =|
|00003d70| 20 2d 31 3b 0a 09 09 09 | 7d 0a 09 09 09 72 65 70 | -1;....|}....rep|
|00003d80| 6c 79 28 32 30 30 2c 20 | 22 50 4f 52 54 20 63 6f |ly(200, |"PORT co|
|00003d90| 6d 6d 61 6e 64 20 73 75 | 63 63 65 73 73 66 75 6c |mmand su|ccessful|
|00003da0| 2e 22 29 3b 0a 09 09 7d | 0a 09 7c 20 50 41 53 56 |.");...}|..| PASV|
|00003db0| 20 43 52 4c 46 0a 09 09 | 7b 0a 09 09 09 70 61 73 | CRLF...|{....pas|
|00003dc0| 73 69 76 65 28 29 3b 0a | 09 09 7d 0a 09 7c 20 54 |sive();.|..}..| T|
|00003dd0| 59 50 45 20 53 50 20 74 | 79 70 65 5f 63 6f 64 65 |YPE SP t|ype_code|
|00003de0| 20 43 52 4c 46 0a 09 09 | 7b 0a 09 09 09 73 77 69 | CRLF...|{....swi|
|00003df0| 74 63 68 20 28 63 6d 64 | 5f 74 79 70 65 29 20 7b |tch (cmd|_type) {|
|00003e00| 0a 0a 09 09 09 63 61 73 | 65 20 54 59 50 45 5f 41 |.....cas|e TYPE_A|
|00003e10| 3a 0a 09 09 09 09 69 66 | 20 28 63 6d 64 5f 66 6f |:.....if| (cmd_fo|
|00003e20| 72 6d 20 3d 3d 20 46 4f | 52 4d 5f 4e 29 20 7b 0a |rm == FO|RM_N) {.|
|00003e30| 09 09 09 09 09 72 65 70 | 6c 79 28 32 30 30 2c 20 |.....rep|ly(200, |
|00003e40| 22 54 79 70 65 20 73 65 | 74 20 74 6f 20 41 2e 22 |"Type se|t to A."|
|00003e50| 29 3b 0a 09 09 09 09 09 | 74 79 70 65 20 3d 20 63 |);......|type = c|
|00003e60| 6d 64 5f 74 79 70 65 3b | 0a 09 09 09 09 09 66 6f |md_type;|......fo|
|00003e70| 72 6d 20 3d 20 63 6d 64 | 5f 66 6f 72 6d 3b 0a 09 |rm = cmd|_form;..|
|00003e80| 09 09 09 7d 20 65 6c 73 | 65 0a 09 09 09 09 09 72 |...} els|e......r|
|00003e90| 65 70 6c 79 28 35 30 34 | 2c 20 22 46 6f 72 6d 20 |eply(504|, "Form |
|00003ea0| 6d 75 73 74 20 62 65 20 | 4e 2e 22 29 3b 0a 09 09 |must be |N.");...|
|00003eb0| 09 09 62 72 65 61 6b 3b | 0a 0a 09 09 09 63 61 73 |..break;|.....cas|
|00003ec0| 65 20 54 59 50 45 5f 45 | 3a 0a 09 09 09 09 72 65 |e TYPE_E|:.....re|
|00003ed0| 70 6c 79 28 35 30 34 2c | 20 22 54 79 70 65 20 45 |ply(504,| "Type E|
|00003ee0| 20 6e 6f 74 20 69 6d 70 | 6c 65 6d 65 6e 74 65 64 | not imp|lemented|
|00003ef0| 2e 22 29 3b 0a 09 09 09 | 09 62 72 65 61 6b 3b 0a |.");....|.break;.|
|00003f00| 0a 09 09 09 63 61 73 65 | 20 54 59 50 45 5f 49 3a |....case| TYPE_I:|
|00003f10| 0a 09 09 09 09 72 65 70 | 6c 79 28 32 30 30 2c 20 |.....rep|ly(200, |
|00003f20| 22 54 79 70 65 20 73 65 | 74 20 74 6f 20 49 2e 22 |"Type se|t to I."|
|00003f30| 29 3b 0a 09 09 09 09 74 | 79 70 65 20 3d 20 63 6d |);.....t|ype = cm|
|00003f40| 64 5f 74 79 70 65 3b 0a | 09 09 09 09 62 72 65 61 |d_type;.|....brea|
|00003f50| 6b 3b 0a 0a 09 09 09 63 | 61 73 65 20 54 59 50 45 |k;.....c|ase TYPE|
|00003f60| 5f 4c 3a 0a 23 69 66 20 | 43 48 41 52 5f 42 49 54 |_L:.#if |CHAR_BIT|
|00003f70| 20 3d 3d 20 38 0a 09 09 | 09 09 69 66 20 28 63 6d | == 8...|..if (cm|
|00003f80| 64 5f 62 79 74 65 73 7a | 20 3d 3d 20 38 29 20 7b |d_bytesz| == 8) {|
|00003f90| 0a 09 09 09 09 09 72 65 | 70 6c 79 28 32 30 30 2c |......re|ply(200,|
|00003fa0| 0a 09 09 09 09 09 20 20 | 20 20 22 54 79 70 65 20 |...... | "Type |
|00003fb0| 73 65 74 20 74 6f 20 4c | 20 28 62 79 74 65 20 73 |set to L| (byte s|
|00003fc0| 69 7a 65 20 38 29 2e 22 | 29 3b 0a 09 09 09 09 09 |ize 8)."|);......|
|00003fd0| 74 79 70 65 20 3d 20 63 | 6d 64 5f 74 79 70 65 3b |type = c|md_type;|
|00003fe0| 0a 09 09 09 09 7d 20 65 | 6c 73 65 0a 09 09 09 09 |.....} e|lse.....|
|00003ff0| 09 72 65 70 6c 79 28 35 | 30 34 2c 20 22 42 79 74 |.reply(5|04, "Byt|
|00004000| 65 20 73 69 7a 65 20 6d | 75 73 74 20 62 65 20 38 |e size m|ust be 8|
|00004010| 2e 22 29 3b 0a 23 65 6c | 73 65 20 2f 2a 20 43 48 |.");.#el|se /* CH|
|00004020| 41 52 5f 42 49 54 20 3d | 3d 20 38 20 2a 2f 0a 09 |AR_BIT =|= 8 */..|
|00004030| 09 09 09 55 4e 49 4d 50 | 4c 45 4d 45 4e 54 45 44 |...UNIMP|LEMENTED|
|00004040| 20 66 6f 72 20 43 48 41 | 52 5f 42 49 54 20 21 3d | for CHA|R_BIT !=|
|00004050| 20 38 0a 23 65 6e 64 69 | 66 20 2f 2a 20 43 48 41 | 8.#endi|f /* CHA|
|00004060| 52 5f 42 49 54 20 3d 3d | 20 38 20 2a 2f 0a 09 09 |R_BIT ==| 8 */...|
|00004070| 09 7d 0a 09 09 7d 0a 09 | 7c 20 53 54 52 55 20 53 |.}...}..|| STRU S|
|00004080| 50 20 73 74 72 75 63 74 | 5f 63 6f 64 65 20 43 52 |P struct|_code CR|
|00004090| 4c 46 0a 09 09 7b 0a 09 | 09 09 73 77 69 74 63 68 |LF...{..|..switch|
|000040a0| 20 28 24 33 29 20 7b 0a | 0a 09 09 09 63 61 73 65 | ($3) {.|....case|
|000040b0| 20 53 54 52 55 5f 46 3a | 0a 09 09 09 09 72 65 70 | STRU_F:|.....rep|
|000040c0| 6c 79 28 32 30 30 2c 20 | 22 53 54 52 55 20 46 20 |ly(200, |"STRU F |
|000040d0| 6f 6b 2e 22 29 3b 0a 09 | 09 09 09 62 72 65 61 6b |ok.");..|...break|
|000040e0| 3b 0a 0a 09 09 09 64 65 | 66 61 75 6c 74 3a 0a 09 |;.....de|fault:..|
|000040f0| 09 09 09 72 65 70 6c 79 | 28 35 30 34 2c 20 22 55 |...reply|(504, "U|
|00004100| 6e 69 6d 70 6c 65 6d 65 | 6e 74 65 64 20 53 54 52 |nimpleme|nted STR|
|00004110| 55 20 74 79 70 65 2e 22 | 29 3b 0a 09 09 09 7d 0a |U type."|);....}.|
|00004120| 09 09 7d 0a 09 7c 20 4d | 4f 44 45 20 53 50 20 6d |..}..| M|ODE SP m|
|00004130| 6f 64 65 5f 63 6f 64 65 | 20 43 52 4c 46 0a 09 09 |ode_code| CRLF...|
|00004140| 7b 0a 09 09 09 73 77 69 | 74 63 68 20 28 24 33 29 |{....swi|tch ($3)|
|00004150| 20 7b 0a 0a 09 09 09 63 | 61 73 65 20 4d 4f 44 45 | {.....c|ase MODE|
|00004160| 5f 53 3a 0a 09 09 09 09 | 72 65 70 6c 79 28 32 30 |_S:.....|reply(20|
|00004170| 30 2c 20 22 4d 4f 44 45 | 20 53 20 6f 6b 2e 22 29 |0, "MODE| S ok.")|
|00004180| 3b 0a 09 09 09 09 62 72 | 65 61 6b 3b 0a 0a 09 09 |;.....br|eak;....|
|00004190| 09 64 65 66 61 75 6c 74 | 3a 0a 09 09 09 09 72 65 |.default|:.....re|
|000041a0| 70 6c 79 28 35 30 32 2c | 20 22 55 6e 69 6d 70 6c |ply(502,| "Unimpl|
|000041b0| 65 6d 65 6e 74 65 64 20 | 4d 4f 44 45 20 74 79 70 |emented |MODE typ|
|000041c0| 65 2e 22 29 3b 0a 09 09 | 09 7d 0a 09 09 7d 0a 09 |e.");...|.}...}..|
|000041d0| 7c 20 41 4c 4c 4f 20 53 | 50 20 4e 55 4d 42 45 52 || ALLO S|P NUMBER|
|000041e0| 20 43 52 4c 46 0a 09 09 | 7b 0a 09 09 09 72 65 70 | CRLF...|{....rep|
|000041f0| 6c 79 28 32 30 32 2c 20 | 22 41 4c 4c 4f 20 63 6f |ly(202, |"ALLO co|
|00004200| 6d 6d 61 6e 64 20 69 67 | 6e 6f 72 65 64 2e 22 29 |mmand ig|nored.")|
|00004210| 3b 0a 09 09 7d 0a 09 7c | 20 41 4c 4c 4f 20 53 50 |;...}..|| ALLO SP|
|00004220| 20 4e 55 4d 42 45 52 20 | 53 50 20 52 20 53 50 20 | NUMBER |SP R SP |
|00004230| 4e 55 4d 42 45 52 20 43 | 52 4c 46 0a 09 09 7b 0a |NUMBER C|RLF...{.|
|00004240| 09 09 09 72 65 70 6c 79 | 28 32 30 32 2c 20 22 41 |...reply|(202, "A|
|00004250| 4c 4c 4f 20 63 6f 6d 6d | 61 6e 64 20 69 67 6e 6f |LLO comm|and igno|
|00004260| 72 65 64 2e 22 29 3b 0a | 09 09 7d 0a 09 7c 20 52 |red.");.|..}..| R|
|00004270| 45 54 52 20 63 68 65 63 | 6b 5f 6c 6f 67 69 6e 20 |ETR chec|k_login |
|00004280| 53 50 20 70 61 74 68 6e | 61 6d 65 20 43 52 4c 46 |SP pathn|ame CRLF|
|00004290| 0a 09 09 7b 0a 09 09 09 | 69 66 20 28 24 32 20 26 |...{....|if ($2 &|
|000042a0| 26 20 24 34 20 21 3d 20 | 4e 55 4c 4c 29 0a 09 09 |& $4 != |NULL)...|
|000042b0| 09 09 72 65 74 72 69 65 | 76 65 28 28 63 68 61 72 |..retrie|ve((char|
|000042c0| 20 2a 29 20 30 2c 20 24 | 34 29 3b 0a 09 09 09 69 | *) 0, $|4);....i|
|000042d0| 66 20 28 24 34 20 21 3d | 20 4e 55 4c 4c 29 0a 09 |f ($4 !=| NULL)..|
|000042e0| 09 09 09 66 72 65 65 28 | 24 34 29 3b 0a 09 09 7d |...free(|$4);...}|
|000042f0| 0a 09 7c 20 53 54 4f 52 | 20 63 68 65 63 6b 5f 6c |..| STOR| check_l|
|00004300| 6f 67 69 6e 20 53 50 20 | 70 61 74 68 6e 61 6d 65 |ogin SP |pathname|
|00004310| 20 43 52 4c 46 0a 09 09 | 7b 0a 09 09 09 69 66 20 | CRLF...|{....if |
|00004320| 28 24 32 20 26 26 20 24 | 34 20 21 3d 20 4e 55 4c |($2 && $|4 != NUL|
|00004330| 4c 29 0a 09 09 09 09 73 | 74 6f 72 65 28 24 34 2c |L).....s|tore($4,|
|00004340| 20 22 77 22 2c 20 30 29 | 3b 0a 09 09 09 69 66 20 | "w", 0)|;....if |
|00004350| 28 24 34 20 21 3d 20 4e | 55 4c 4c 29 0a 09 09 09 |($4 != N|ULL)....|
|00004360| 09 66 72 65 65 28 24 34 | 29 3b 0a 09 09 7d 0a 09 |.free($4|);...}..|
|00004370| 7c 20 41 50 50 45 20 63 | 68 65 63 6b 5f 6c 6f 67 || APPE c|heck_log|
|00004380| 69 6e 20 53 50 20 70 61 | 74 68 6e 61 6d 65 20 43 |in SP pa|thname C|
|00004390| 52 4c 46 0a 09 09 7b 0a | 09 09 09 69 66 20 28 24 |RLF...{.|...if ($|
|000043a0| 32 20 26 26 20 24 34 20 | 21 3d 20 4e 55 4c 4c 29 |2 && $4 |!= NULL)|
|000043b0| 0a 09 09 09 09 73 74 6f | 72 65 28 24 34 2c 20 22 |.....sto|re($4, "|
|000043c0| 61 22 2c 20 30 29 3b 0a | 09 09 09 69 66 20 28 24 |a", 0);.|...if ($|
|000043d0| 34 20 21 3d 20 4e 55 4c | 4c 29 0a 09 09 09 09 66 |4 != NUL|L).....f|
|000043e0| 72 65 65 28 24 34 29 3b | 0a 09 09 7d 0a 09 7c 20 |ree($4);|...}..| |
|000043f0| 4e 4c 53 54 20 63 68 65 | 63 6b 5f 6c 6f 67 69 6e |NLST che|ck_login|
|00004400| 20 43 52 4c 46 0a 09 09 | 7b 0a 09 09 09 69 66 20 | CRLF...|{....if |
|00004410| 28 24 32 29 0a 09 09 09 | 09 73 65 6e 64 5f 66 69 |($2)....|.send_fi|
|00004420| 6c 65 5f 6c 69 73 74 28 | 22 2e 22 29 3b 0a 09 09 |le_list(|".");...|
|00004430| 7d 0a 09 7c 20 4e 4c 53 | 54 20 63 68 65 63 6b 5f |}..| NLS|T check_|
|00004440| 6c 6f 67 69 6e 20 53 50 | 20 53 54 52 49 4e 47 20 |login SP| STRING |
|00004450| 43 52 4c 46 0a 09 09 7b | 0a 09 09 09 69 66 20 28 |CRLF...{|....if (|
|00004460| 24 32 20 26 26 20 24 34 | 20 21 3d 20 4e 55 4c 4c |$2 && $4| != NULL|
|00004470| 29 0a 09 09 09 09 73 65 | 6e 64 5f 66 69 6c 65 5f |).....se|nd_file_|
|00004480| 6c 69 73 74 28 24 34 29 | 3b 0a 09 09 09 69 66 20 |list($4)|;....if |
|00004490| 28 24 34 20 21 3d 20 4e | 55 4c 4c 29 0a 09 09 09 |($4 != N|ULL)....|
|000044a0| 09 66 72 65 65 28 24 34 | 29 3b 0a 09 09 7d 0a 09 |.free($4|);...}..|
|000044b0| 7c 20 4c 49 53 54 20 63 | 68 65 63 6b 5f 6c 6f 67 || LIST c|heck_log|
|000044c0| 69 6e 20 43 52 4c 46 0a | 09 09 7b 0a 09 09 09 69 |in CRLF.|..{....i|
|000044d0| 66 20 28 24 32 29 0a 09 | 09 09 09 72 65 74 72 69 |f ($2)..|...retri|
|000044e0| 65 76 65 28 22 2f 62 69 | 6e 2f 6c 73 20 2d 6c 67 |eve("/bi|n/ls -lg|
|000044f0| 41 22 2c 20 22 22 29 3b | 0a 09 09 7d 0a 09 7c 20 |A", "");|...}..| |
|00004500| 4c 49 53 54 20 63 68 65 | 63 6b 5f 6c 6f 67 69 6e |LIST che|ck_login|
|00004510| 20 53 50 20 70 61 74 68 | 6e 61 6d 65 20 43 52 4c | SP path|name CRL|
|00004520| 46 0a 09 09 7b 0a 09 09 | 09 69 66 20 28 24 32 20 |F...{...|.if ($2 |
|00004530| 26 26 20 24 34 20 21 3d | 20 4e 55 4c 4c 29 0a 09 |&& $4 !=| NULL)..|
|00004540| 09 09 09 72 65 74 72 69 | 65 76 65 28 22 2f 62 69 |...retri|eve("/bi|
|00004550| 6e 2f 6c 73 20 2d 6c 67 | 41 20 25 73 22 2c 20 24 |n/ls -lg|A %s", $|
|00004560| 34 29 3b 0a 09 09 09 69 | 66 20 28 24 34 20 21 3d |4);....i|f ($4 !=|
|00004570| 20 4e 55 4c 4c 29 0a 09 | 09 09 09 66 72 65 65 28 | NULL)..|...free(|
|00004580| 24 34 29 3b 0a 09 09 7d | 0a 09 7c 20 53 54 41 54 |$4);...}|..| STAT|
|00004590| 20 63 68 65 63 6b 5f 6c | 6f 67 69 6e 20 53 50 20 | check_l|ogin SP |
|000045a0| 70 61 74 68 6e 61 6d 65 | 20 43 52 4c 46 0a 09 09 |pathname| CRLF...|
|000045b0| 7b 0a 09 09 09 69 66 20 | 28 24 32 20 26 26 20 24 |{....if |($2 && $|
|000045c0| 34 20 21 3d 20 4e 55 4c | 4c 29 0a 09 09 09 09 73 |4 != NUL|L).....s|
|000045d0| 74 61 74 66 69 6c 65 63 | 6d 64 28 24 34 29 3b 0a |tatfilec|md($4);.|
|000045e0| 09 09 09 69 66 20 28 24 | 34 20 21 3d 20 4e 55 4c |...if ($|4 != NUL|
|000045f0| 4c 29 0a 09 09 09 09 66 | 72 65 65 28 24 34 29 3b |L).....f|ree($4);|
|00004600| 0a 09 09 7d 0a 09 7c 20 | 53 54 41 54 20 43 52 4c |...}..| |STAT CRL|
|00004610| 46 0a 09 09 7b 0a 09 09 | 09 73 74 61 74 63 6d 64 |F...{...|.statcmd|
|00004620| 28 29 3b 0a 09 09 7d 0a | 09 7c 20 44 45 4c 45 20 |();...}.|.| DELE |
|00004630| 63 68 65 63 6b 5f 6c 6f | 67 69 6e 20 53 50 20 70 |check_lo|gin SP p|
|00004640| 61 74 68 6e 61 6d 65 20 | 43 52 4c 46 0a 09 09 7b |athname |CRLF...{|
|00004650| 0a 09 09 09 69 66 20 28 | 24 32 20 26 26 20 24 34 |....if (|$2 && $4|
|00004660| 20 21 3d 20 4e 55 4c 4c | 29 0a 09 09 09 09 64 65 | != NULL|).....de|
|00004670| 6c 65 74 65 28 24 34 29 | 3b 0a 09 09 09 69 66 20 |lete($4)|;....if |
|00004680| 28 24 34 20 21 3d 20 4e | 55 4c 4c 29 0a 09 09 09 |($4 != N|ULL)....|
|00004690| 09 66 72 65 65 28 24 34 | 29 3b 0a 09 09 7d 0a 09 |.free($4|);...}..|
|000046a0| 7c 20 52 4e 54 4f 20 53 | 50 20 70 61 74 68 6e 61 || RNTO S|P pathna|
|000046b0| 6d 65 20 43 52 4c 46 0a | 09 09 7b 0a 09 09 09 69 |me CRLF.|..{....i|
|000046c0| 66 20 28 66 72 6f 6d 6e | 61 6d 65 29 20 7b 0a 09 |f (fromn|ame) {..|
|000046d0| 09 09 09 72 65 6e 61 6d | 65 63 6d 64 28 66 72 6f |...renam|ecmd(fro|
|000046e0| 6d 6e 61 6d 65 2c 20 24 | 33 29 3b 0a 09 09 09 09 |mname, $|3);.....|
|000046f0| 66 72 65 65 28 66 72 6f | 6d 6e 61 6d 65 29 3b 0a |free(fro|mname);.|
|00004700| 09 09 09 09 66 72 6f 6d | 6e 61 6d 65 20 3d 20 28 |....from|name = (|
|00004710| 63 68 61 72 20 2a 29 20 | 30 3b 0a 09 09 09 7d 20 |char *) |0;....} |
|00004720| 65 6c 73 65 20 7b 0a 09 | 09 09 09 72 65 70 6c 79 |else {..|...reply|
|00004730| 28 35 30 33 2c 20 22 42 | 61 64 20 73 65 71 75 65 |(503, "B|ad seque|
|00004740| 6e 63 65 20 6f 66 20 63 | 6f 6d 6d 61 6e 64 73 2e |nce of c|ommands.|
|00004750| 22 29 3b 0a 09 09 09 7d | 0a 09 09 09 66 72 65 65 |");....}|....free|
|00004760| 28 24 33 29 3b 0a 09 09 | 7d 0a 09 7c 20 41 42 4f |($3);...|}..| ABO|
|00004770| 52 20 43 52 4c 46 0a 09 | 09 7b 0a 09 09 09 72 65 |R CRLF..|.{....re|
|00004780| 70 6c 79 28 32 32 35 2c | 20 22 41 42 4f 52 20 63 |ply(225,| "ABOR c|
|00004790| 6f 6d 6d 61 6e 64 20 73 | 75 63 63 65 73 73 66 75 |ommand s|uccessfu|
|000047a0| 6c 2e 22 29 3b 0a 09 09 | 7d 0a 09 7c 20 43 57 44 |l.");...|}..| CWD|
|000047b0| 20 63 68 65 63 6b 5f 6c | 6f 67 69 6e 20 43 52 4c | check_l|ogin CRL|
|000047c0| 46 0a 09 09 7b 0a 09 09 | 09 69 66 20 28 24 32 29 |F...{...|.if ($2)|
|000047d0| 0a 09 09 09 09 63 77 64 | 28 70 77 2d 3e 70 77 5f |.....cwd|(pw->pw_|
|000047e0| 64 69 72 29 3b 0a 09 09 | 7d 0a 09 7c 20 43 57 44 |dir);...|}..| CWD|
|000047f0| 20 63 68 65 63 6b 5f 6c | 6f 67 69 6e 20 53 50 20 | check_l|ogin SP |
|00004800| 70 61 74 68 6e 61 6d 65 | 20 43 52 4c 46 0a 09 09 |pathname| CRLF...|
|00004810| 7b 0a 09 09 09 69 66 20 | 28 24 32 20 26 26 20 24 |{....if |($2 && $|
|00004820| 34 20 21 3d 20 4e 55 4c | 4c 29 0a 09 09 09 09 63 |4 != NUL|L).....c|
|00004830| 77 64 28 24 34 29 3b 0a | 09 09 09 69 66 20 28 24 |wd($4);.|...if ($|
|00004840| 34 20 21 3d 20 4e 55 4c | 4c 29 0a 09 09 09 09 66 |4 != NUL|L).....f|
|00004850| 72 65 65 28 24 34 29 3b | 0a 09 09 7d 0a 09 7c 20 |ree($4);|...}..| |
|00004860| 48 45 4c 50 20 43 52 4c | 46 0a 09 09 7b 0a 09 09 |HELP CRL|F...{...|
|00004870| 09 68 65 6c 70 28 63 6d | 64 74 61 62 2c 20 28 63 |.help(cm|dtab, (c|
|00004880| 68 61 72 20 2a 29 20 30 | 29 3b 0a 09 09 7d 0a 09 |har *) 0|);...}..|
|00004890| 7c 20 48 45 4c 50 20 53 | 50 20 53 54 52 49 4e 47 || HELP S|P STRING|
|000048a0| 20 43 52 4c 46 0a 09 09 | 7b 0a 09 09 09 63 68 61 | CRLF...|{....cha|
|000048b0| 72 20 2a 63 70 20 3d 20 | 24 33 3b 0a 0a 09 09 09 |r *cp = |$3;.....|
|000048c0| 69 66 20 28 73 74 72 6e | 63 61 73 65 63 6d 70 28 |if (strn|casecmp(|
|000048d0| 63 70 2c 20 22 53 49 54 | 45 22 2c 20 34 29 20 3d |cp, "SIT|E", 4) =|
|000048e0| 3d 20 30 29 20 7b 0a 09 | 09 09 09 63 70 20 3d 20 |= 0) {..|...cp = |
|000048f0| 24 33 20 2b 20 34 3b 0a | 09 09 09 09 69 66 20 28 |$3 + 4;.|....if (|
|00004900| 2a 63 70 20 3d 3d 20 27 | 20 27 29 0a 09 09 09 09 |*cp == '| ').....|
|00004910| 09 63 70 2b 2b 3b 0a 09 | 09 09 09 69 66 20 28 2a |.cp++;..|...if (*|
|00004920| 63 70 29 0a 09 09 09 09 | 09 68 65 6c 70 28 73 69 |cp).....|.help(si|
|00004930| 74 65 74 61 62 2c 20 63 | 70 29 3b 0a 09 09 09 09 |tetab, c|p);.....|
|00004940| 65 6c 73 65 0a 09 09 09 | 09 09 68 65 6c 70 28 73 |else....|..help(s|
|00004950| 69 74 65 74 61 62 2c 20 | 28 63 68 61 72 20 2a 29 |itetab, |(char *)|
|00004960| 20 30 29 3b 0a 09 09 09 | 7d 20 65 6c 73 65 0a 09 | 0);....|} else..|
|00004970| 09 09 09 68 65 6c 70 28 | 63 6d 64 74 61 62 2c 20 |...help(|cmdtab, |
|00004980| 24 33 29 3b 0a 09 09 7d | 0a 09 7c 20 4e 4f 4f 50 |$3);...}|..| NOOP|
|00004990| 20 43 52 4c 46 0a 09 09 | 7b 0a 09 09 09 72 65 70 | CRLF...|{....rep|
|000049a0| 6c 79 28 32 30 30 2c 20 | 22 4e 4f 4f 50 20 63 6f |ly(200, |"NOOP co|
|000049b0| 6d 6d 61 6e 64 20 73 75 | 63 63 65 73 73 66 75 6c |mmand su|ccessful|
|000049c0| 2e 22 29 3b 0a 09 09 7d | 0a 09 7c 20 4d 4b 44 20 |.");...}|..| MKD |
|000049d0| 63 68 65 63 6b 5f 6c 6f | 67 69 6e 20 53 50 20 70 |check_lo|gin SP p|
|000049e0| 61 74 68 6e 61 6d 65 20 | 43 52 4c 46 0a 09 09 7b |athname |CRLF...{|
|000049f0| 0a 09 09 09 69 66 20 28 | 24 32 20 26 26 20 24 34 |....if (|$2 && $4|
|00004a00| 20 21 3d 20 4e 55 4c 4c | 29 0a 09 09 09 09 6d 61 | != NULL|).....ma|
|00004a10| 6b 65 64 69 72 28 24 34 | 29 3b 0a 09 09 09 69 66 |kedir($4|);....if|
|00004a20| 20 28 24 34 20 21 3d 20 | 4e 55 4c 4c 29 0a 09 09 | ($4 != |NULL)...|
|00004a30| 09 09 66 72 65 65 28 24 | 34 29 3b 0a 09 09 7d 0a |..free($|4);...}.|
|00004a40| 09 7c 20 52 4d 44 20 63 | 68 65 63 6b 5f 6c 6f 67 |.| RMD c|heck_log|
|00004a50| 69 6e 20 53 50 20 70 61 | 74 68 6e 61 6d 65 20 43 |in SP pa|thname C|
|00004a60| 52 4c 46 0a 09 09 7b 0a | 09 09 09 69 66 20 28 24 |RLF...{.|...if ($|
|00004a70| 32 20 26 26 20 24 34 20 | 21 3d 20 4e 55 4c 4c 29 |2 && $4 |!= NULL)|
|00004a80| 0a 09 09 09 09 72 65 6d | 6f 76 65 64 69 72 28 24 |.....rem|ovedir($|
|00004a90| 34 29 3b 0a 09 09 09 69 | 66 20 28 24 34 20 21 3d |4);....i|f ($4 !=|
|00004aa0| 20 4e 55 4c 4c 29 0a 09 | 09 09 09 66 72 65 65 28 | NULL)..|...free(|
|00004ab0| 24 34 29 3b 0a 09 09 7d | 0a 09 7c 20 50 57 44 20 |$4);...}|..| PWD |
|00004ac0| 63 68 65 63 6b 5f 6c 6f | 67 69 6e 20 43 52 4c 46 |check_lo|gin CRLF|
|00004ad0| 0a 09 09 7b 0a 09 09 09 | 69 66 20 28 24 32 29 0a |...{....|if ($2).|
|00004ae0| 09 09 09 09 70 77 64 28 | 29 3b 0a 09 09 7d 0a 09 |....pwd(|);...}..|
|00004af0| 7c 20 43 44 55 50 20 63 | 68 65 63 6b 5f 6c 6f 67 || CDUP c|heck_log|
|00004b00| 69 6e 20 43 52 4c 46 0a | 09 09 7b 0a 09 09 09 69 |in CRLF.|..{....i|
|00004b10| 66 20 28 24 32 29 0a 09 | 09 09 09 63 77 64 28 22 |f ($2)..|...cwd("|
|00004b20| 2e 2e 22 29 3b 0a 09 09 | 7d 0a 09 7c 20 53 49 54 |..");...|}..| SIT|
|00004b30| 45 20 53 50 20 48 45 4c | 50 20 43 52 4c 46 0a 09 |E SP HEL|P CRLF..|
|00004b40| 09 7b 0a 09 09 09 68 65 | 6c 70 28 73 69 74 65 74 |.{....he|lp(sitet|
|00004b50| 61 62 2c 20 28 63 68 61 | 72 20 2a 29 20 30 29 3b |ab, (cha|r *) 0);|
|00004b60| 0a 09 09 7d 0a 09 7c 20 | 53 49 54 45 20 53 50 20 |...}..| |SITE SP |
|00004b70| 48 45 4c 50 20 53 50 20 | 53 54 52 49 4e 47 20 43 |HELP SP |STRING C|
|00004b80| 52 4c 46 0a 09 09 7b 0a | 09 09 09 68 65 6c 70 28 |RLF...{.|...help(|
|00004b90| 73 69 74 65 74 61 62 2c | 20 24 35 29 3b 0a 09 09 |sitetab,| $5);...|
|00004ba0| 7d 0a 09 7c 20 53 49 54 | 45 20 53 50 20 55 4d 41 |}..| SIT|E SP UMA|
|00004bb0| 53 4b 20 63 68 65 63 6b | 5f 6c 6f 67 69 6e 20 43 |SK check|_login C|
|00004bc0| 52 4c 46 0a 09 09 7b 0a | 09 09 09 69 6e 74 20 6f |RLF...{.|...int o|
|00004bd0| 6c 64 6d 61 73 6b 3b 0a | 0a 09 09 09 69 66 20 28 |ldmask;.|....if (|
|00004be0| 24 34 29 20 7b 0a 09 09 | 09 09 6f 6c 64 6d 61 73 |$4) {...|..oldmas|
|00004bf0| 6b 20 3d 20 75 6d 61 73 | 6b 28 30 29 3b 0a 09 09 |k = umas|k(0);...|
|00004c00| 09 09 28 76 6f 69 64 29 | 20 75 6d 61 73 6b 28 6f |..(void)| umask(o|
|00004c10| 6c 64 6d 61 73 6b 29 3b | 0a 09 09 09 09 72 65 70 |ldmask);|.....rep|
|00004c20| 6c 79 28 32 30 30 2c 20 | 22 43 75 72 72 65 6e 74 |ly(200, |"Current|
|00004c30| 20 55 4d 41 53 4b 20 69 | 73 20 25 30 33 6f 22 2c | UMASK i|s %03o",|
|00004c40| 20 6f 6c 64 6d 61 73 6b | 29 3b 0a 09 09 09 7d 0a | oldmask|);....}.|
|00004c50| 09 09 7d 0a 09 7c 20 53 | 49 54 45 20 53 50 20 55 |..}..| S|ITE SP U|
|00004c60| 4d 41 53 4b 20 63 68 65 | 63 6b 5f 6c 6f 67 69 6e |MASK che|ck_login|
|00004c70| 20 53 50 20 6f 63 74 61 | 6c 5f 6e 75 6d 62 65 72 | SP octa|l_number|
|00004c80| 20 43 52 4c 46 0a 09 09 | 7b 0a 09 09 09 69 6e 74 | CRLF...|{....int|
|00004c90| 20 6f 6c 64 6d 61 73 6b | 3b 0a 0a 09 09 09 69 66 | oldmask|;.....if|
|00004ca0| 20 28 24 34 29 20 7b 0a | 09 09 09 09 69 66 20 28 | ($4) {.|....if (|
|00004cb0| 28 24 36 20 3d 3d 20 2d | 31 29 20 7c 7c 20 28 24 |($6 == -|1) || ($|
|00004cc0| 36 20 3e 20 30 37 37 37 | 29 29 20 7b 0a 09 09 09 |6 > 0777|)) {....|
|00004cd0| 09 09 72 65 70 6c 79 28 | 35 30 31 2c 20 22 42 61 |..reply(|501, "Ba|
|00004ce0| 64 20 55 4d 41 53 4b 20 | 76 61 6c 75 65 22 29 3b |d UMASK |value");|
|00004cf0| 0a 09 09 09 09 7d 20 65 | 6c 73 65 20 7b 0a 09 09 |.....} e|lse {...|
|00004d00| 09 09 09 6f 6c 64 6d 61 | 73 6b 20 3d 20 75 6d 61 |...oldma|sk = uma|
|00004d10| 73 6b 28 24 36 29 3b 0a | 09 09 09 09 09 72 65 70 |sk($6);.|.....rep|
|00004d20| 6c 79 28 32 30 30 2c 0a | 09 09 09 09 09 20 20 20 |ly(200,.|..... |
|00004d30| 20 22 55 4d 41 53 4b 20 | 73 65 74 20 74 6f 20 25 | "UMASK |set to %|
|00004d40| 30 33 6f 20 28 77 61 73 | 20 25 30 33 6f 29 22 2c |03o (was| %03o)",|
|00004d50| 0a 09 09 09 09 09 20 20 | 20 20 24 36 2c 20 6f 6c |...... | $6, ol|
|00004d60| 64 6d 61 73 6b 29 3b 0a | 09 09 09 09 7d 0a 09 09 |dmask);.|....}...|
|00004d70| 09 7d 0a 09 09 7d 0a 09 | 7c 20 53 49 54 45 20 53 |.}...}..|| SITE S|
|00004d80| 50 20 43 48 4d 4f 44 20 | 63 68 65 63 6b 5f 6c 6f |P CHMOD |check_lo|
|00004d90| 67 69 6e 20 53 50 20 6f | 63 74 61 6c 5f 6e 75 6d |gin SP o|ctal_num|
|00004da0| 62 65 72 20 53 50 20 70 | 61 74 68 6e 61 6d 65 20 |ber SP p|athname |
|00004db0| 43 52 4c 46 0a 09 09 7b | 0a 09 09 09 69 66 20 28 |CRLF...{|....if (|
|00004dc0| 24 34 20 26 26 20 28 24 | 38 20 21 3d 20 4e 55 4c |$4 && ($|8 != NUL|
|00004dd0| 4c 29 29 20 7b 0a 09 09 | 09 09 69 66 20 28 24 36 |L)) {...|..if ($6|
|00004de0| 20 3e 20 30 37 37 37 29 | 0a 09 09 09 09 09 72 65 | > 0777)|......re|
|00004df0| 70 6c 79 28 35 30 31 2c | 0a 09 09 09 09 22 43 48 |ply(501,|....."CH|
|00004e00| 4d 4f 44 3a 20 4d 6f 64 | 65 20 76 61 6c 75 65 20 |MOD: Mod|e value |
|00004e10| 6d 75 73 74 20 62 65 20 | 62 65 74 77 65 65 6e 20 |must be |between |
|00004e20| 30 20 61 6e 64 20 30 37 | 37 37 22 29 3b 0a 09 09 |0 and 07|77");...|
|00004e30| 09 09 65 6c 73 65 20 69 | 66 20 28 63 68 6d 6f 64 |..else i|f (chmod|
|00004e40| 28 24 38 2c 20 24 36 29 | 20 3c 20 30 29 0a 09 09 |($8, $6)| < 0)...|
|00004e50| 09 09 09 70 65 72 72 6f | 72 5f 72 65 70 6c 79 28 |...perro|r_reply(|
|00004e60| 35 35 30 2c 20 24 38 29 | 3b 0a 09 09 09 09 65 6c |550, $8)|;.....el|
|00004e70| 73 65 0a 09 09 09 09 09 | 72 65 70 6c 79 28 32 30 |se......|reply(20|
|00004e80| 30 2c 20 22 43 48 4d 4f | 44 20 63 6f 6d 6d 61 6e |0, "CHMO|D comman|
|00004e90| 64 20 73 75 63 63 65 73 | 73 66 75 6c 2e 22 29 3b |d succes|sful.");|
|00004ea0| 0a 09 09 09 7d 0a 09 09 | 09 69 66 20 28 24 38 20 |....}...|.if ($8 |
|00004eb0| 21 3d 20 4e 55 4c 4c 29 | 0a 09 09 09 09 66 72 65 |!= NULL)|.....fre|
|00004ec0| 65 28 24 38 29 3b 0a 09 | 09 7d 0a 09 7c 20 53 49 |e($8);..|.}..| SI|
|00004ed0| 54 45 20 53 50 20 49 44 | 4c 45 20 43 52 4c 46 0a |TE SP ID|LE CRLF.|
|00004ee0| 09 09 7b 0a 09 09 09 72 | 65 70 6c 79 28 32 30 30 |..{....r|eply(200|
|00004ef0| 2c 0a 09 09 09 20 20 20 | 20 22 43 75 72 72 65 6e |,.... | "Curren|
|00004f00| 74 20 49 44 4c 45 20 74 | 69 6d 65 20 6c 69 6d 69 |t IDLE t|ime limi|
|00004f10| 74 20 69 73 20 25 64 20 | 73 65 63 6f 6e 64 73 3b |t is %d |seconds;|
|00004f20| 20 6d 61 78 20 25 64 22 | 2c 0a 09 09 09 09 74 69 | max %d"|,.....ti|
|00004f30| 6d 65 6f 75 74 2c 20 6d | 61 78 74 69 6d 65 6f 75 |meout, m|axtimeou|
|00004f40| 74 29 3b 0a 09 09 7d 0a | 09 7c 20 53 49 54 45 20 |t);...}.|.| SITE |
|00004f50| 53 50 20 49 44 4c 45 20 | 53 50 20 4e 55 4d 42 45 |SP IDLE |SP NUMBE|
|00004f60| 52 20 43 52 4c 46 0a 09 | 09 7b 0a 09 09 09 69 66 |R CRLF..|.{....if|
|00004f70| 20 28 24 35 20 3c 20 33 | 30 20 7c 7c 20 24 35 20 | ($5 < 3|0 || $5 |
|00004f80| 3e 20 6d 61 78 74 69 6d | 65 6f 75 74 29 20 7b 0a |> maxtim|eout) {.|
|00004f90| 09 09 09 09 72 65 70 6c | 79 28 35 30 31 2c 0a 09 |....repl|y(501,..|
|00004fa0| 09 09 22 4d 61 78 69 6d | 75 6d 20 49 44 4c 45 20 |.."Maxim|um IDLE |
|00004fb0| 74 69 6d 65 20 6d 75 73 | 74 20 62 65 20 62 65 74 |time mus|t be bet|
|00004fc0| 77 65 65 6e 20 33 30 20 | 61 6e 64 20 25 64 20 73 |ween 30 |and %d s|
|00004fd0| 65 63 6f 6e 64 73 22 2c | 0a 09 09 09 09 20 20 20 |econds",|..... |
|00004fe0| 20 6d 61 78 74 69 6d 65 | 6f 75 74 29 3b 0a 09 09 | maxtime|out);...|
|00004ff0| 09 7d 20 65 6c 73 65 20 | 7b 0a 09 09 09 09 74 69 |.} else |{.....ti|
|00005000| 6d 65 6f 75 74 20 3d 20 | 24 35 3b 0a 09 09 09 09 |meout = |$5;.....|
|00005010| 28 76 6f 69 64 29 20 61 | 6c 61 72 6d 28 28 75 6e |(void) a|larm((un|
|00005020| 73 69 67 6e 65 64 29 20 | 74 69 6d 65 6f 75 74 29 |signed) |timeout)|
|00005030| 3b 0a 09 09 09 09 72 65 | 70 6c 79 28 32 30 30 2c |;.....re|ply(200,|
|00005040| 0a 09 09 09 09 20 20 20 | 20 22 4d 61 78 69 6d 75 |..... | "Maximu|
|00005050| 6d 20 49 44 4c 45 20 74 | 69 6d 65 20 73 65 74 20 |m IDLE t|ime set |
|00005060| 74 6f 20 25 64 20 73 65 | 63 6f 6e 64 73 22 2c 0a |to %d se|conds",.|
|00005070| 09 09 09 09 20 20 20 20 | 74 69 6d 65 6f 75 74 29 |.... |timeout)|
|00005080| 3b 0a 09 09 09 7d 0a 09 | 09 7d 0a 09 7c 20 53 54 |;....}..|.}..| ST|
|00005090| 4f 55 20 63 68 65 63 6b | 5f 6c 6f 67 69 6e 20 53 |OU check|_login S|
|000050a0| 50 20 70 61 74 68 6e 61 | 6d 65 20 43 52 4c 46 0a |P pathna|me CRLF.|
|000050b0| 09 09 7b 0a 09 09 09 69 | 66 20 28 24 32 20 26 26 |..{....i|f ($2 &&|
|000050c0| 20 24 34 20 21 3d 20 4e | 55 4c 4c 29 0a 09 09 09 | $4 != N|ULL)....|
|000050d0| 09 73 74 6f 72 65 28 24 | 34 2c 20 22 77 22 2c 20 |.store($|4, "w", |
|000050e0| 31 29 3b 0a 09 09 09 69 | 66 20 28 24 34 20 21 3d |1);....i|f ($4 !=|
|000050f0| 20 4e 55 4c 4c 29 0a 09 | 09 09 09 66 72 65 65 28 | NULL)..|...free(|
|00005100| 24 34 29 3b 0a 09 09 7d | 0a 09 7c 20 53 59 53 54 |$4);...}|..| SYST|
|00005110| 20 43 52 4c 46 0a 09 09 | 7b 0a 23 69 66 64 65 66 | CRLF...|{.#ifdef|
|00005120| 20 75 6e 69 78 0a 23 69 | 66 64 65 66 20 42 53 44 | unix.#i|fdef BSD|
|00005130| 0a 09 09 09 72 65 70 6c | 79 28 32 31 35 2c 20 22 |....repl|y(215, "|
|00005140| 55 4e 49 58 20 54 79 70 | 65 3a 20 4c 25 64 20 56 |UNIX Typ|e: L%d V|
|00005150| 65 72 73 69 6f 6e 3a 20 | 42 53 44 2d 25 64 22 2c |ersion: |BSD-%d",|
|00005160| 0a 09 09 09 09 43 48 41 | 52 5f 42 49 54 2c 20 42 |.....CHA|R_BIT, B|
|00005170| 53 44 29 3b 0a 23 65 6c | 73 65 20 2f 2a 20 42 53 |SD);.#el|se /* BS|
|00005180| 44 20 2a 2f 0a 23 69 66 | 64 65 66 20 6c 69 6e 75 |D */.#if|def linu|
|00005190| 78 0a 09 09 09 72 65 70 | 6c 79 28 32 31 35 2c 20 |x....rep|ly(215, |
|000051a0| 22 55 4e 49 58 20 54 79 | 70 65 3a 20 4c 25 64 20 |"UNIX Ty|pe: L%d |
|000051b0| 56 65 72 73 69 6f 6e 3a | 20 4c 49 4e 55 58 22 2c |Version:| LINUX",|
|000051c0| 20 43 48 41 52 5f 42 49 | 54 29 3b 0a 23 65 6c 73 | CHAR_BI|T);.#els|
|000051d0| 65 0a 09 09 09 72 65 70 | 6c 79 28 32 31 35 2c 20 |e....rep|ly(215, |
|000051e0| 22 55 4e 49 58 20 54 79 | 70 65 3a 20 4c 25 64 22 |"UNIX Ty|pe: L%d"|
|000051f0| 2c 20 43 48 41 52 5f 42 | 49 54 29 3b 0a 23 65 6e |, CHAR_B|IT);.#en|
|00005200| 64 69 66 20 2f 2a 20 6c | 69 6e 75 78 20 2a 2f 0a |dif /* l|inux */.|
|00005210| 23 65 6e 64 69 66 20 2f | 2a 20 42 53 44 20 2a 2f |#endif /|* BSD */|
|00005220| 0a 23 65 6c 73 65 20 2f | 2a 20 75 6e 69 78 20 2a |.#else /|* unix *|
|00005230| 2f 0a 09 09 09 72 65 70 | 6c 79 28 32 31 35 2c 20 |/....rep|ly(215, |
|00005240| 22 55 4e 4b 4e 4f 57 4e | 20 54 79 70 65 3a 20 4c |"UNKNOWN| Type: L|
|00005250| 25 64 22 2c 20 43 48 41 | 52 5f 42 49 54 29 3b 0a |%d", CHA|R_BIT);.|
|00005260| 23 65 6e 64 69 66 20 2f | 2a 20 75 6e 69 78 20 2a |#endif /|* unix *|
|00005270| 2f 0a 09 09 7d 0a 0a 09 | 09 2f 2a 0a 09 09 20 2a |/...}...|./*... *|
|00005280| 20 53 49 5a 45 20 69 73 | 20 6e 6f 74 20 69 6e 20 | SIZE is| not in |
|00005290| 52 46 43 39 35 39 2c 20 | 62 75 74 20 50 6f 73 74 |RFC959, |but Post|
|000052a0| 65 6c 20 68 61 73 20 62 | 6c 65 73 73 65 64 20 69 |el has b|lessed i|
|000052b0| 74 20 61 6e 64 0a 09 09 | 20 2a 20 69 74 20 77 69 |t and...| * it wi|
|000052c0| 6c 6c 20 62 65 20 69 6e | 20 74 68 65 20 75 70 64 |ll be in| the upd|
|000052d0| 61 74 65 64 20 52 46 43 | 2e 0a 09 09 20 2a 0a 09 |ated RFC|.... *..|
|000052e0| 09 20 2a 20 52 65 74 75 | 72 6e 20 73 69 7a 65 20 |. * Retu|rn size |
|000052f0| 6f 66 20 66 69 6c 65 20 | 69 6e 20 61 20 66 6f 72 |of file |in a for|
|00005300| 6d 61 74 20 73 75 69 74 | 61 62 6c 65 20 66 6f 72 |mat suit|able for|
|00005310| 0a 09 09 20 2a 20 75 73 | 69 6e 67 20 77 69 74 68 |... * us|ing with|
|00005320| 20 52 45 53 54 41 52 54 | 20 28 77 65 20 6a 75 73 | RESTART| (we jus|
|00005330| 74 20 63 6f 75 6e 74 20 | 62 79 74 65 73 29 2e 0a |t count |bytes)..|
|00005340| 09 09 20 2a 2f 0a 09 7c | 20 53 49 5a 45 20 63 68 |.. */..|| SIZE ch|
|00005350| 65 63 6b 5f 6c 6f 67 69 | 6e 20 53 50 20 70 61 74 |eck_logi|n SP pat|
|00005360| 68 6e 61 6d 65 20 43 52 | 4c 46 0a 09 09 7b 0a 09 |hname CR|LF...{..|
|00005370| 09 09 69 66 20 28 24 32 | 20 26 26 20 24 34 20 21 |..if ($2| && $4 !|
|00005380| 3d 20 4e 55 4c 4c 29 0a | 09 09 09 09 73 69 7a 65 |= NULL).|....size|
|00005390| 63 6d 64 28 24 34 29 3b | 0a 09 09 09 69 66 20 28 |cmd($4);|....if (|
|000053a0| 24 34 20 21 3d 20 4e 55 | 4c 4c 29 0a 09 09 09 09 |$4 != NU|LL).....|
|000053b0| 66 72 65 65 28 24 34 29 | 3b 0a 09 09 7d 0a 0a 09 |free($4)|;...}...|
|000053c0| 09 2f 2a 0a 09 09 20 2a | 20 4d 44 54 4d 20 69 73 |./*... *| MDTM is|
|000053d0| 20 6e 6f 74 20 69 6e 20 | 52 46 43 39 35 39 2c 20 | not in |RFC959, |
|000053e0| 62 75 74 20 50 6f 73 74 | 65 6c 20 68 61 73 20 62 |but Post|el has b|
|000053f0| 6c 65 73 73 65 64 20 69 | 74 20 61 6e 64 0a 09 09 |lessed i|t and...|
|00005400| 20 2a 20 69 74 20 77 69 | 6c 6c 20 62 65 20 69 6e | * it wi|ll be in|
|00005410| 20 74 68 65 20 75 70 64 | 61 74 65 64 20 52 46 43 | the upd|ated RFC|
|00005420| 2e 0a 09 09 20 2a 0a 09 | 09 20 2a 20 52 65 74 75 |.... *..|. * Retu|
|00005430| 72 6e 20 6d 6f 64 69 66 | 69 63 61 74 69 6f 6e 20 |rn modif|ication |
|00005440| 74 69 6d 65 20 6f 66 20 | 66 69 6c 65 20 61 73 20 |time of |file as |
|00005450| 61 6e 20 49 53 4f 20 33 | 33 30 37 0a 09 09 20 2a |an ISO 3|307... *|
|00005460| 20 73 74 79 6c 65 20 74 | 69 6d 65 2e 20 45 2e 67 | style t|ime. E.g|
|00005470| 2e 20 59 59 59 59 4d 4d | 44 44 48 48 4d 4d 53 53 |. YYYYMM|DDHHMMSS|
|00005480| 20 6f 72 20 59 59 59 59 | 4d 4d 44 44 48 48 4d 4d | or YYYY|MMDDHHMM|
|00005490| 53 53 2e 78 78 78 0a 09 | 09 20 2a 20 77 68 65 72 |SS.xxx..|. * wher|
|000054a0| 65 20 78 78 78 20 69 73 | 20 74 68 65 20 66 72 61 |e xxx is| the fra|
|000054b0| 63 74 69 6f 6e 61 6c 20 | 73 65 63 6f 6e 64 20 28 |ctional |second (|
|000054c0| 6f 66 20 61 6e 79 20 70 | 72 65 63 69 73 69 6f 6e |of any p|recision|
|000054d0| 2c 0a 09 09 20 2a 20 6e | 6f 74 20 6e 65 63 65 73 |,... * n|ot neces|
|000054e0| 73 61 72 69 6c 79 20 33 | 20 64 69 67 69 74 73 29 |sarily 3| digits)|
|000054f0| 0a 09 09 20 2a 2f 0a 09 | 7c 20 4d 44 54 4d 20 63 |... */..|| MDTM c|
|00005500| 68 65 63 6b 5f 6c 6f 67 | 69 6e 20 53 50 20 70 61 |heck_log|in SP pa|
|00005510| 74 68 6e 61 6d 65 20 43 | 52 4c 46 0a 09 09 7b 0a |thname C|RLF...{.|
|00005520| 09 09 09 69 66 20 28 24 | 32 20 26 26 20 24 34 20 |...if ($|2 && $4 |
|00005530| 21 3d 20 4e 55 4c 4c 29 | 20 7b 0a 09 09 09 09 73 |!= NULL)| {.....s|
|00005540| 74 72 75 63 74 20 73 74 | 61 74 20 73 74 62 75 66 |truct st|at stbuf|
|00005550| 3b 0a 09 09 09 09 69 66 | 20 28 73 74 61 74 28 24 |;.....if| (stat($|
|00005560| 34 2c 20 26 73 74 62 75 | 66 29 20 3c 20 30 29 0a |4, &stbu|f) < 0).|
|00005570| 09 09 09 09 09 72 65 70 | 6c 79 28 35 35 30 2c 20 |.....rep|ly(550, |
|00005580| 22 25 73 3a 20 25 73 22 | 2c 0a 09 09 09 09 09 20 |"%s: %s"|,...... |
|00005590| 20 20 20 24 34 2c 20 73 | 74 72 65 72 72 6f 72 28 | $4, s|trerror(|
|000055a0| 65 72 72 6e 6f 29 29 3b | 0a 09 09 09 09 65 6c 73 |errno));|.....els|
|000055b0| 65 20 69 66 20 28 21 53 | 5f 49 53 52 45 47 28 73 |e if (!S|_ISREG(s|
|000055c0| 74 62 75 66 2e 73 74 5f | 6d 6f 64 65 29 29 20 7b |tbuf.st_|mode)) {|
|000055d0| 0a 09 09 09 09 09 72 65 | 70 6c 79 28 35 35 30 2c |......re|ply(550,|
|000055e0| 20 22 25 73 3a 20 6e 6f | 74 20 61 20 70 6c 61 69 | "%s: no|t a plai|
|000055f0| 6e 20 66 69 6c 65 2e 22 | 2c 20 24 34 29 3b 0a 09 |n file."|, $4);..|
|00005600| 09 09 09 7d 20 65 6c 73 | 65 20 7b 0a 09 09 09 09 |...} els|e {.....|
|00005610| 09 73 74 72 75 63 74 20 | 74 6d 20 2a 74 3b 0a 09 |.struct |tm *t;..|
|00005620| 09 09 09 09 74 20 3d 20 | 67 6d 74 69 6d 65 28 26 |....t = |gmtime(&|
|00005630| 73 74 62 75 66 2e 73 74 | 5f 6d 74 69 6d 65 29 3b |stbuf.st|_mtime);|
|00005640| 0a 09 09 09 09 09 72 65 | 70 6c 79 28 32 31 33 2c |......re|ply(213,|
|00005650| 0a 09 09 09 09 09 20 20 | 20 20 22 31 39 25 30 32 |...... | "19%02|
|00005660| 64 25 30 32 64 25 30 32 | 64 25 30 32 64 25 30 32 |d%02d%02|d%02d%02|
|00005670| 64 25 30 32 64 22 2c 0a | 09 09 09 09 09 20 20 20 |d%02d",.|..... |
|00005680| 20 74 2d 3e 74 6d 5f 79 | 65 61 72 2c 20 74 2d 3e | t->tm_y|ear, t->|
|00005690| 74 6d 5f 6d 6f 6e 2b 31 | 2c 20 74 2d 3e 74 6d 5f |tm_mon+1|, t->tm_|
|000056a0| 6d 64 61 79 2c 0a 09 09 | 09 09 09 20 20 20 20 74 |mday,...|... t|
|000056b0| 2d 3e 74 6d 5f 68 6f 75 | 72 2c 20 74 2d 3e 74 6d |->tm_hou|r, t->tm|
|000056c0| 5f 6d 69 6e 2c 20 74 2d | 3e 74 6d 5f 73 65 63 29 |_min, t-|>tm_sec)|
|000056d0| 3b 0a 09 09 09 09 7d 0a | 09 09 09 7d 0a 09 09 09 |;.....}.|...}....|
|000056e0| 69 66 20 28 24 34 20 21 | 3d 20 4e 55 4c 4c 29 0a |if ($4 !|= NULL).|
|000056f0| 09 09 09 09 66 72 65 65 | 28 24 34 29 3b 0a 09 09 |....free|($4);...|
|00005700| 7d 0a 09 7c 20 51 55 49 | 54 20 43 52 4c 46 0a 09 |}..| QUI|T CRLF..|
|00005710| 09 7b 0a 09 09 09 72 65 | 70 6c 79 28 32 32 31 2c |.{....re|ply(221,|
|00005720| 20 22 47 6f 6f 64 62 79 | 65 2e 22 29 3b 0a 09 09 | "Goodby|e.");...|
|00005730| 09 64 6f 6c 6f 67 6f 75 | 74 28 30 29 3b 0a 09 09 |.dologou|t(0);...|
|00005740| 7d 0a 09 7c 20 65 72 72 | 6f 72 20 43 52 4c 46 0a |}..| err|or CRLF.|
|00005750| 09 09 7b 0a 09 09 09 79 | 79 65 72 72 6f 6b 3b 0a |..{....y|yerrok;.|
|00005760| 09 09 7d 0a 09 3b 0a 72 | 63 6d 64 0a 09 3a 20 52 |..}..;.r|cmd..: R|
|00005770| 4e 46 52 20 63 68 65 63 | 6b 5f 6c 6f 67 69 6e 20 |NFR chec|k_login |
|00005780| 53 50 20 70 61 74 68 6e | 61 6d 65 20 43 52 4c 46 |SP pathn|ame CRLF|
|00005790| 0a 09 09 7b 0a 09 09 09 | 63 68 61 72 20 2a 72 65 |...{....|char *re|
|000057a0| 6e 61 6d 65 66 72 6f 6d | 28 29 3b 0a 0a 09 09 09 |namefrom|();.....|
|000057b0| 72 65 73 74 61 72 74 5f | 70 6f 69 6e 74 20 3d 20 |restart_|point = |
|000057c0| 28 6f 66 66 5f 74 29 20 | 30 3b 0a 09 09 09 69 66 |(off_t) |0;....if|
|000057d0| 20 28 24 32 20 26 26 20 | 24 34 29 20 7b 0a 09 09 | ($2 && |$4) {...|
|000057e0| 09 09 66 72 6f 6d 6e 61 | 6d 65 20 3d 20 72 65 6e |..fromna|me = ren|
|000057f0| 61 6d 65 66 72 6f 6d 28 | 24 34 29 3b 0a 09 09 09 |amefrom(|$4);....|
|00005800| 09 69 66 20 28 66 72 6f | 6d 6e 61 6d 65 20 3d 3d |.if (fro|mname ==|
|00005810| 20 28 63 68 61 72 20 2a | 29 20 30 20 26 26 20 24 | (char *|) 0 && $|
|00005820| 34 29 20 7b 0a 09 09 09 | 09 09 66 72 65 65 28 24 |4) {....|..free($|
|00005830| 34 29 3b 0a 09 09 09 09 | 7d 0a 09 09 09 7d 0a 09 |4);.....|}....}..|
|00005840| 09 7d 0a 09 7c 20 52 45 | 53 54 20 53 50 20 62 79 |.}..| RE|ST SP by|
|00005850| 74 65 5f 73 69 7a 65 20 | 43 52 4c 46 0a 09 09 7b |te_size |CRLF...{|
|00005860| 0a 09 09 09 66 72 6f 6d | 6e 61 6d 65 20 3d 20 28 |....from|name = (|
|00005870| 63 68 61 72 20 2a 29 20 | 30 3b 0a 09 09 09 72 65 |char *) |0;....re|
|00005880| 73 74 61 72 74 5f 70 6f | 69 6e 74 20 3d 20 24 33 |start_po|int = $3|
|00005890| 3b 09 2f 2a 20 58 58 58 | 20 24 33 20 69 73 20 6f |;./* XXX| $3 is o|
|000058a0| 6e 6c 79 20 22 69 6e 74 | 22 20 2a 2f 0a 09 09 09 |nly "int|" */....|
|000058b0| 72 65 70 6c 79 28 33 35 | 30 2c 20 22 52 65 73 74 |reply(35|0, "Rest|
|000058c0| 61 72 74 69 6e 67 20 61 | 74 20 25 71 64 2e 20 25 |arting a|t %qd. %|
|000058d0| 73 22 2c 20 72 65 73 74 | 61 72 74 5f 70 6f 69 6e |s", rest|art_poin|
|000058e0| 74 2c 0a 09 09 09 20 20 | 20 20 22 53 65 6e 64 20 |t,.... | "Send |
|000058f0| 53 54 4f 52 45 20 6f 72 | 20 52 45 54 52 49 45 56 |STORE or| RETRIEV|
|00005900| 45 20 74 6f 20 69 6e 69 | 74 69 61 74 65 20 74 72 |E to ini|tiate tr|
|00005910| 61 6e 73 66 65 72 2e 22 | 29 3b 0a 09 09 7d 0a 09 |ansfer."|);...}..|
|00005920| 3b 0a 0a 75 73 65 72 6e | 61 6d 65 0a 09 3a 20 53 |;..usern|ame..: S|
|00005930| 54 52 49 4e 47 0a 09 3b | 0a 0a 70 61 73 73 77 6f |TRING..;|..passwo|
|00005940| 72 64 0a 09 3a 20 2f 2a | 20 65 6d 70 74 79 20 2a |rd..: /*| empty *|
|00005950| 2f 0a 09 09 7b 0a 09 09 | 09 24 24 20 3d 20 28 63 |/...{...|.$$ = (c|
|00005960| 68 61 72 20 2a 29 63 61 | 6c 6c 6f 63 28 31 2c 20 |har *)ca|lloc(1, |
|00005970| 73 69 7a 65 6f 66 28 63 | 68 61 72 29 29 3b 0a 09 |sizeof(c|har));..|
|00005980| 09 7d 0a 09 7c 20 53 54 | 52 49 4e 47 0a 09 3b 0a |.}..| ST|RING..;.|
|00005990| 0a 62 79 74 65 5f 73 69 | 7a 65 0a 09 3a 20 4e 55 |.byte_si|ze..: NU|
|000059a0| 4d 42 45 52 0a 09 3b 0a | 0a 68 6f 73 74 5f 70 6f |MBER..;.|.host_po|
|000059b0| 72 74 0a 09 3a 20 4e 55 | 4d 42 45 52 20 43 4f 4d |rt..: NU|MBER COM|
|000059c0| 4d 41 20 4e 55 4d 42 45 | 52 20 43 4f 4d 4d 41 20 |MA NUMBE|R COMMA |
|000059d0| 4e 55 4d 42 45 52 20 43 | 4f 4d 4d 41 20 4e 55 4d |NUMBER C|OMMA NUM|
|000059e0| 42 45 52 20 43 4f 4d 4d | 41 0a 09 09 4e 55 4d 42 |BER COMM|A...NUMB|
|000059f0| 45 52 20 43 4f 4d 4d 41 | 20 4e 55 4d 42 45 52 0a |ER COMMA| NUMBER.|
|00005a00| 09 09 7b 0a 09 09 09 63 | 68 61 72 20 2a 61 2c 20 |..{....c|har *a, |
|00005a10| 2a 70 3b 0a 0a 09 09 09 | 2f 2a 20 64 61 74 61 5f |*p;.....|/* data_|
|00005a20| 64 65 73 74 2e 73 69 6e | 5f 6c 65 6e 20 3d 20 73 |dest.sin|_len = s|
|00005a30| 69 7a 65 6f 66 28 73 74 | 72 75 63 74 20 73 6f 63 |izeof(st|ruct soc|
|00005a40| 6b 61 64 64 72 5f 69 6e | 29 3b 20 2a 2f 0a 09 09 |kaddr_in|); */...|
|00005a50| 09 64 61 74 61 5f 64 65 | 73 74 2e 73 69 6e 5f 66 |.data_de|st.sin_f|
|00005a60| 61 6d 69 6c 79 20 3d 20 | 41 46 5f 49 4e 45 54 3b |amily = |AF_INET;|
|00005a70| 0a 09 09 09 70 20 3d 20 | 28 63 68 61 72 20 2a 29 |....p = |(char *)|
|00005a80| 26 64 61 74 61 5f 64 65 | 73 74 2e 73 69 6e 5f 70 |&data_de|st.sin_p|
|00005a90| 6f 72 74 3b 0a 09 09 09 | 70 5b 30 5d 20 3d 20 24 |ort;....|p[0] = $|
|00005aa0| 39 3b 20 70 5b 31 5d 20 | 3d 20 24 31 31 3b 0a 09 |9; p[1] |= $11;..|
|00005ab0| 09 09 61 20 3d 20 28 63 | 68 61 72 20 2a 29 26 64 |..a = (c|har *)&d|
|00005ac0| 61 74 61 5f 64 65 73 74 | 2e 73 69 6e 5f 61 64 64 |ata_dest|.sin_add|
|00005ad0| 72 3b 0a 09 09 09 61 5b | 30 5d 20 3d 20 24 31 3b |r;....a[|0] = $1;|
|00005ae0| 20 61 5b 31 5d 20 3d 20 | 24 33 3b 20 61 5b 32 5d | a[1] = |$3; a[2]|
|00005af0| 20 3d 20 24 35 3b 20 61 | 5b 33 5d 20 3d 20 24 37 | = $5; a|[3] = $7|
|00005b00| 3b 0a 09 09 7d 0a 09 3b | 0a 0a 66 6f 72 6d 5f 63 |;...}..;|..form_c|
|00005b10| 6f 64 65 0a 09 3a 20 4e | 0a 09 09 7b 0a 09 09 09 |ode..: N|...{....|
|00005b20| 24 24 20 3d 20 46 4f 52 | 4d 5f 4e 3b 0a 09 09 7d |$$ = FOR|M_N;...}|
|00005b30| 0a 09 7c 20 54 0a 09 09 | 7b 0a 09 09 09 24 24 20 |..| T...|{....$$ |
|00005b40| 3d 20 46 4f 52 4d 5f 54 | 3b 0a 09 09 7d 0a 09 7c |= FORM_T|;...}..||
|00005b50| 20 43 0a 09 09 7b 0a 09 | 09 09 24 24 20 3d 20 46 | C...{..|..$$ = F|
|00005b60| 4f 52 4d 5f 43 3b 0a 09 | 09 7d 0a 09 3b 0a 0a 74 |ORM_C;..|.}..;..t|
|00005b70| 79 70 65 5f 63 6f 64 65 | 0a 09 3a 20 41 0a 09 09 |ype_code|..: A...|
|00005b80| 7b 0a 09 09 09 63 6d 64 | 5f 74 79 70 65 20 3d 20 |{....cmd|_type = |
|00005b90| 54 59 50 45 5f 41 3b 0a | 09 09 09 63 6d 64 5f 66 |TYPE_A;.|...cmd_f|
|00005ba0| 6f 72 6d 20 3d 20 46 4f | 52 4d 5f 4e 3b 0a 09 09 |orm = FO|RM_N;...|
|00005bb0| 7d 0a 09 7c 20 41 20 53 | 50 20 66 6f 72 6d 5f 63 |}..| A S|P form_c|
|00005bc0| 6f 64 65 0a 09 09 7b 0a | 09 09 09 63 6d 64 5f 74 |ode...{.|...cmd_t|
|00005bd0| 79 70 65 20 3d 20 54 59 | 50 45 5f 41 3b 0a 09 09 |ype = TY|PE_A;...|
|00005be0| 09 63 6d 64 5f 66 6f 72 | 6d 20 3d 20 24 33 3b 0a |.cmd_for|m = $3;.|
|00005bf0| 09 09 7d 0a 09 7c 20 45 | 0a 09 09 7b 0a 09 09 09 |..}..| E|...{....|
|00005c00| 63 6d 64 5f 74 79 70 65 | 20 3d 20 54 59 50 45 5f |cmd_type| = TYPE_|
|00005c10| 45 3b 0a 09 09 09 63 6d | 64 5f 66 6f 72 6d 20 3d |E;....cm|d_form =|
|00005c20| 20 46 4f 52 4d 5f 4e 3b | 0a 09 09 7d 0a 09 7c 20 | FORM_N;|...}..| |
|00005c30| 45 20 53 50 20 66 6f 72 | 6d 5f 63 6f 64 65 0a 09 |E SP for|m_code..|
|00005c40| 09 7b 0a 09 09 09 63 6d | 64 5f 74 79 70 65 20 3d |.{....cm|d_type =|
|00005c50| 20 54 59 50 45 5f 45 3b | 0a 09 09 09 63 6d 64 5f | TYPE_E;|....cmd_|
|00005c60| 66 6f 72 6d 20 3d 20 24 | 33 3b 0a 09 09 7d 0a 09 |form = $|3;...}..|
|00005c70| 7c 20 49 0a 09 09 7b 0a | 09 09 09 63 6d 64 5f 74 || I...{.|...cmd_t|
|00005c80| 79 70 65 20 3d 20 54 59 | 50 45 5f 49 3b 0a 09 09 |ype = TY|PE_I;...|
|00005c90| 7d 0a 09 7c 20 4c 0a 09 | 09 7b 0a 09 09 09 63 6d |}..| L..|.{....cm|
|00005ca0| 64 5f 74 79 70 65 20 3d | 20 54 59 50 45 5f 4c 3b |d_type =| TYPE_L;|
|00005cb0| 0a 09 09 09 63 6d 64 5f | 62 79 74 65 73 7a 20 3d |....cmd_|bytesz =|
|00005cc0| 20 43 48 41 52 5f 42 49 | 54 3b 0a 09 09 7d 0a 09 | CHAR_BI|T;...}..|
|00005cd0| 7c 20 4c 20 53 50 20 62 | 79 74 65 5f 73 69 7a 65 || L SP b|yte_size|
|00005ce0| 0a 09 09 7b 0a 09 09 09 | 63 6d 64 5f 74 79 70 65 |...{....|cmd_type|
|00005cf0| 20 3d 20 54 59 50 45 5f | 4c 3b 0a 09 09 09 63 6d | = TYPE_|L;....cm|
|00005d00| 64 5f 62 79 74 65 73 7a | 20 3d 20 24 33 3b 0a 09 |d_bytesz| = $3;..|
|00005d10| 09 7d 0a 09 09 2f 2a 20 | 74 68 69 73 20 69 73 20 |.}.../* |this is |
|00005d20| 66 6f 72 20 61 20 62 75 | 67 20 69 6e 20 74 68 65 |for a bu|g in the|
|00005d30| 20 42 42 4e 20 66 74 70 | 20 2a 2f 0a 09 7c 20 4c | BBN ftp| */..| L|
|00005d40| 20 62 79 74 65 5f 73 69 | 7a 65 0a 09 09 7b 0a 09 | byte_si|ze...{..|
|00005d50| 09 09 63 6d 64 5f 74 79 | 70 65 20 3d 20 54 59 50 |..cmd_ty|pe = TYP|
|00005d60| 45 5f 4c 3b 0a 09 09 09 | 63 6d 64 5f 62 79 74 65 |E_L;....|cmd_byte|
|00005d70| 73 7a 20 3d 20 24 32 3b | 0a 09 09 7d 0a 09 3b 0a |sz = $2;|...}..;.|
|00005d80| 0a 73 74 72 75 63 74 5f | 63 6f 64 65 0a 09 3a 20 |.struct_|code..: |
|00005d90| 46 0a 09 09 7b 0a 09 09 | 09 24 24 20 3d 20 53 54 |F...{...|.$$ = ST|
|00005da0| 52 55 5f 46 3b 0a 09 09 | 7d 0a 09 7c 20 52 0a 09 |RU_F;...|}..| R..|
|00005db0| 09 7b 0a 09 09 09 24 24 | 20 3d 20 53 54 52 55 5f |.{....$$| = STRU_|
|00005dc0| 52 3b 0a 09 09 7d 0a 09 | 7c 20 50 0a 09 09 7b 0a |R;...}..|| P...{.|
|00005dd0| 09 09 09 24 24 20 3d 20 | 53 54 52 55 5f 50 3b 0a |...$$ = |STRU_P;.|
|00005de0| 09 09 7d 0a 09 3b 0a 0a | 6d 6f 64 65 5f 63 6f 64 |..}..;..|mode_cod|
|00005df0| 65 0a 09 3a 20 53 0a 09 | 09 7b 0a 09 09 09 24 24 |e..: S..|.{....$$|
|00005e00| 20 3d 20 4d 4f 44 45 5f | 53 3b 0a 09 09 7d 0a 09 | = MODE_|S;...}..|
|00005e10| 7c 20 42 0a 09 09 7b 0a | 09 09 09 24 24 20 3d 20 || B...{.|...$$ = |
|00005e20| 4d 4f 44 45 5f 42 3b 0a | 09 09 7d 0a 09 7c 20 43 |MODE_B;.|..}..| C|
|00005e30| 0a 09 09 7b 0a 09 09 09 | 24 24 20 3d 20 4d 4f 44 |...{....|$$ = MOD|
|00005e40| 45 5f 43 3b 0a 09 09 7d | 0a 09 3b 0a 0a 70 61 74 |E_C;...}|..;..pat|
|00005e50| 68 6e 61 6d 65 0a 09 3a | 20 70 61 74 68 73 74 72 |hname..:| pathstr|
|00005e60| 69 6e 67 0a 09 09 7b 0a | 09 09 09 2f 2a 0a 09 09 |ing...{.|.../*...|
|00005e70| 09 20 2a 20 50 72 6f 62 | 6c 65 6d 3a 20 74 68 69 |. * Prob|lem: thi|
|00005e80| 73 20 70 72 6f 64 75 63 | 74 69 6f 6e 20 69 73 20 |s produc|tion is |
|00005e90| 75 73 65 64 20 66 6f 72 | 20 61 6c 6c 20 70 61 74 |used for| all pat|
|00005ea0| 68 6e 61 6d 65 0a 09 09 | 09 20 2a 20 70 72 6f 63 |hname...|. * proc|
|00005eb0| 65 73 73 69 6e 67 2c 20 | 62 75 74 20 6f 6e 6c 79 |essing, |but only|
|00005ec0| 20 67 69 76 65 73 20 61 | 20 35 35 30 20 65 72 72 | gives a| 550 err|
|00005ed0| 6f 72 20 72 65 70 6c 79 | 2e 0a 09 09 09 20 2a 20 |or reply|..... * |
|00005ee0| 54 68 69 73 20 69 73 20 | 61 20 76 61 6c 69 64 20 |This is |a valid |
|00005ef0| 72 65 70 6c 79 20 69 6e | 20 73 6f 6d 65 20 63 61 |reply in| some ca|
|00005f00| 73 65 73 20 62 75 74 20 | 6e 6f 74 20 69 6e 20 6f |ses but |not in o|
|00005f10| 74 68 65 72 73 2e 0a 09 | 09 09 20 2a 2f 0a 09 09 |thers...|.. */...|
|00005f20| 09 69 66 20 28 6c 6f 67 | 67 65 64 5f 69 6e 20 26 |.if (log|ged_in &|
|00005f30| 26 20 24 31 20 26 26 20 | 2a 24 31 20 3d 3d 20 27 |& $1 && |*$1 == '|
|00005f40| 7e 27 29 20 7b 0a 09 09 | 09 09 67 6c 6f 62 5f 74 |~') {...|..glob_t|
|00005f50| 20 67 6c 3b 0a 09 09 09 | 09 69 6e 74 20 66 6c 61 | gl;....|.int fla|
|00005f60| 67 73 20 3d 0a 09 09 09 | 09 20 47 4c 4f 42 5f 42 |gs =....|. GLOB_B|
|00005f70| 52 41 43 45 7c 47 4c 4f | 42 5f 4e 4f 43 48 45 43 |RACE|GLO|B_NOCHEC|
|00005f80| 4b 7c 47 4c 4f 42 5f 51 | 55 4f 54 45 7c 47 4c 4f |K|GLOB_Q|UOTE|GLO|
|00005f90| 42 5f 54 49 4c 44 45 3b | 0a 0a 09 09 09 09 6d 65 |B_TILDE;|......me|
|00005fa0| 6d 73 65 74 28 26 67 6c | 2c 20 30 2c 20 73 69 7a |mset(&gl|, 0, siz|
|00005fb0| 65 6f 66 28 67 6c 29 29 | 3b 0a 09 09 09 09 69 66 |eof(gl))|;.....if|
|00005fc0| 20 28 67 6c 6f 62 28 24 | 31 2c 20 66 6c 61 67 73 | (glob($|1, flags|
|00005fd0| 2c 20 4e 55 4c 4c 2c 20 | 26 67 6c 29 20 7c 7c 0a |, NULL, |&gl) ||.|
|00005fe0| 09 09 09 09 20 20 20 20 | 67 6c 2e 67 6c 5f 70 61 |.... |gl.gl_pa|
|00005ff0| 74 68 63 20 3d 3d 20 30 | 29 20 7b 0a 09 09 09 09 |thc == 0|) {.....|
|00006000| 09 72 65 70 6c 79 28 35 | 35 30 2c 20 22 6e 6f 74 |.reply(5|50, "not|
|00006010| 20 66 6f 75 6e 64 22 29 | 3b 0a 09 09 09 09 09 24 | found")|;......$|
|00006020| 24 20 3d 20 4e 55 4c 4c | 3b 0a 09 09 09 09 7d 20 |$ = NULL|;.....} |
|00006030| 65 6c 73 65 20 7b 0a 09 | 09 09 09 09 24 24 20 3d |else {..|....$$ =|
|00006040| 20 73 74 72 64 75 70 28 | 67 6c 2e 67 6c 5f 70 61 | strdup(|gl.gl_pa|
|00006050| 74 68 76 5b 30 5d 29 3b | 0a 09 09 09 09 7d 0a 09 |thv[0]);|.....}..|
|00006060| 09 09 09 67 6c 6f 62 66 | 72 65 65 28 26 67 6c 29 |...globf|ree(&gl)|
|00006070| 3b 0a 09 09 09 09 66 72 | 65 65 28 24 31 29 3b 0a |;.....fr|ee($1);.|
|00006080| 09 09 09 7d 20 65 6c 73 | 65 0a 09 09 09 09 24 24 |...} els|e.....$$|
|00006090| 20 3d 20 24 31 3b 0a 09 | 09 7d 0a 09 3b 0a 0a 70 | = $1;..|.}..;..p|
|000060a0| 61 74 68 73 74 72 69 6e | 67 0a 09 3a 20 53 54 52 |athstrin|g..: STR|
|000060b0| 49 4e 47 0a 09 3b 0a 0a | 6f 63 74 61 6c 5f 6e 75 |ING..;..|octal_nu|
|000060c0| 6d 62 65 72 0a 09 3a 20 | 4e 55 4d 42 45 52 0a 09 |mber..: |NUMBER..|
|000060d0| 09 7b 0a 09 09 09 69 6e | 74 20 72 65 74 2c 20 64 |.{....in|t ret, d|
|000060e0| 65 63 2c 20 6d 75 6c 74 | 62 79 2c 20 64 69 67 69 |ec, mult|by, digi|
|000060f0| 74 3b 0a 0a 09 09 09 2f | 2a 0a 09 09 09 20 2a 20 |t;...../|*.... * |
|00006100| 43 6f 6e 76 65 72 74 20 | 61 20 6e 75 6d 62 65 72 |Convert |a number|
|00006110| 20 74 68 61 74 20 77 61 | 73 20 72 65 61 64 20 61 | that wa|s read a|
|00006120| 73 20 64 65 63 69 6d 61 | 6c 20 6e 75 6d 62 65 72 |s decima|l number|
|00006130| 0a 09 09 09 20 2a 20 74 | 6f 20 77 68 61 74 20 69 |.... * t|o what i|
|00006140| 74 20 77 6f 75 6c 64 20 | 62 65 20 69 66 20 69 74 |t would |be if it|
|00006150| 20 68 61 64 20 62 65 65 | 6e 20 72 65 61 64 20 61 | had bee|n read a|
|00006160| 73 20 6f 63 74 61 6c 2e | 0a 09 09 09 20 2a 2f 0a |s octal.|.... */.|
|00006170| 09 09 09 64 65 63 20 3d | 20 24 31 3b 0a 09 09 09 |...dec =| $1;....|
|00006180| 6d 75 6c 74 62 79 20 3d | 20 31 3b 0a 09 09 09 72 |multby =| 1;....r|
|00006190| 65 74 20 3d 20 30 3b 0a | 09 09 09 77 68 69 6c 65 |et = 0;.|...while|
|000061a0| 20 28 64 65 63 29 20 7b | 0a 09 09 09 09 64 69 67 | (dec) {|.....dig|
|000061b0| 69 74 20 3d 20 64 65 63 | 25 31 30 3b 0a 09 09 09 |it = dec|%10;....|
|000061c0| 09 69 66 20 28 64 69 67 | 69 74 20 3e 20 37 29 20 |.if (dig|it > 7) |
|000061d0| 7b 0a 09 09 09 09 09 72 | 65 74 20 3d 20 2d 31 3b |{......r|et = -1;|
|000061e0| 0a 09 09 09 09 09 62 72 | 65 61 6b 3b 0a 09 09 09 |......br|eak;....|
|000061f0| 09 7d 0a 09 09 09 09 72 | 65 74 20 2b 3d 20 64 69 |.}.....r|et += di|
|00006200| 67 69 74 20 2a 20 6d 75 | 6c 74 62 79 3b 0a 09 09 |git * mu|ltby;...|
|00006210| 09 09 6d 75 6c 74 62 79 | 20 2a 3d 20 38 3b 0a 09 |..multby| *= 8;..|
|00006220| 09 09 09 64 65 63 20 2f | 3d 20 31 30 3b 0a 09 09 |...dec /|= 10;...|
|00006230| 09 7d 0a 09 09 09 24 24 | 20 3d 20 72 65 74 3b 0a |.}....$$| = ret;.|
|00006240| 09 09 7d 0a 09 3b 0a 0a | 0a 63 68 65 63 6b 5f 6c |..}..;..|.check_l|
|00006250| 6f 67 69 6e 0a 09 3a 20 | 2f 2a 20 65 6d 70 74 79 |ogin..: |/* empty|
|00006260| 20 2a 2f 0a 09 09 7b 0a | 09 09 09 69 66 20 28 6c | */...{.|...if (l|
|00006270| 6f 67 67 65 64 5f 69 6e | 29 0a 09 09 09 09 24 24 |ogged_in|).....$$|
|00006280| 20 3d 20 31 3b 0a 09 09 | 09 65 6c 73 65 20 7b 0a | = 1;...|.else {.|
|00006290| 09 09 09 09 72 65 70 6c | 79 28 35 33 30 2c 20 22 |....repl|y(530, "|
|000062a0| 50 6c 65 61 73 65 20 6c | 6f 67 69 6e 20 77 69 74 |Please l|ogin wit|
|000062b0| 68 20 55 53 45 52 20 61 | 6e 64 20 50 41 53 53 2e |h USER a|nd PASS.|
|000062c0| 22 29 3b 0a 09 09 09 09 | 24 24 20 3d 20 30 3b 0a |");.....|$$ = 0;.|
|000062d0| 09 09 09 7d 0a 09 09 7d | 0a 09 3b 0a 0a 25 25 0a |...}...}|..;..%%.|
|000062e0| 0a 65 78 74 65 72 6e 20 | 6a 6d 70 5f 62 75 66 20 |.extern |jmp_buf |
|000062f0| 65 72 72 63 61 74 63 68 | 3b 0a 0a 23 64 65 66 69 |errcatch|;..#defi|
|00006300| 6e 65 09 43 4d 44 09 30 | 09 2f 2a 20 62 65 67 69 |ne.CMD.0|./* begi|
|00006310| 6e 6e 69 6e 67 20 6f 66 | 20 63 6f 6d 6d 61 6e 64 |nning of| command|
|00006320| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 09 41 52 47 53 | */.#def|ine.ARGS|
|00006330| 09 31 09 2f 2a 20 65 78 | 70 65 63 74 20 6d 69 73 |.1./* ex|pect mis|
|00006340| 63 65 6c 6c 61 6e 65 6f | 75 73 20 61 72 67 75 6d |cellaneo|us argum|
|00006350| 65 6e 74 73 20 2a 2f 0a | 23 64 65 66 69 6e 65 09 |ents */.|#define.|
|00006360| 53 54 52 31 09 32 09 2f | 2a 20 65 78 70 65 63 74 |STR1.2./|* expect|
|00006370| 20 53 50 20 66 6f 6c 6c | 6f 77 65 64 20 62 79 20 | SP foll|owed by |
|00006380| 53 54 52 49 4e 47 20 2a | 2f 0a 23 64 65 66 69 6e |STRING *|/.#defin|
|00006390| 65 09 53 54 52 32 09 33 | 09 2f 2a 20 65 78 70 65 |e.STR2.3|./* expe|
|000063a0| 63 74 20 53 54 52 49 4e | 47 20 2a 2f 0a 23 64 65 |ct STRIN|G */.#de|
|000063b0| 66 69 6e 65 09 4f 53 54 | 52 09 34 09 2f 2a 20 6f |fine.OST|R.4./* o|
|000063c0| 70 74 69 6f 6e 61 6c 20 | 53 50 20 74 68 65 6e 20 |ptional |SP then |
|000063d0| 53 54 52 49 4e 47 20 2a | 2f 0a 23 64 65 66 69 6e |STRING *|/.#defin|
|000063e0| 65 09 5a 53 54 52 31 09 | 35 09 2f 2a 20 53 50 20 |e.ZSTR1.|5./* SP |
|000063f0| 74 68 65 6e 20 6f 70 74 | 69 6f 6e 61 6c 20 53 54 |then opt|ional ST|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.